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