39 ret = rename(oldname, newname);
44 if (remove(oldname) != -1)
78 strcmp(mapset, xmapset))
81 strcmp(mapset, xmapset))
int G_name_is_fully_qualified(const char *, char *, char *)
Check if map name is fully qualified (map @ mapset)
char * G_file_name(char *, const char *, const char *, const char *)
Builds full path names to GIS data files.
const char * G_mapset(void)
Get current mapset name.
int G_copy_file(const char *, const char *)
Copies one file to another.
int G_rename_file(const char *oldname, const char *newname)
Rename a file or a directory in the filesystem.
int G_rename(const char *element, const char *oldname, const char *newname)
Rename a database file.