45 for (p = fullname; *p; p++)
61 while ((*q++ = *p++)) ;
63 return (*name && *mapset);
105 if (strchr(name,
'@') || strlen(mapset) < 1) {
106 sprintf(fullname,
"%s", name);
109 sprintf(fullname,
"%s@%s", name, mapset);
135 char *xname,
char *xmapset)
139 if (mapset && *mapset && strcmp(mapset, xmapset) != 0)
147 strcpy(xmapset, mapset);
int G_unqualified_name(const char *name, const char *mapset, char *xname, char *xmapset)
Returns unqualified map name (without @ mapset)
char * G_fully_qualified_name(const char *name, const char *mapset)
Get fully qualified element name.
char * G_store(const char *)
Copy string to allocated memory.
int G_name_is_fully_qualified(const char *fullname, char *name, char *mapset)
Check if map name is fully qualified (map @ mapset)