17 #include <grass/gis.h>
38 return (sscanf(name_in,
"%s %s %s", name_out, in, mapset) == 3 &&
39 strcmp(in,
"in") == 0);
66 for (p = fullname; *p; p++)
82 while ((*q++ = *p++)) ;
84 return (*name && *mapset);
120 char fullname[GNAME_MAX + GMAPSET_MAX];
122 if (strchr(name,
'@'))
125 sprintf(fullname,
"%s@%s", name, mapset);
153 if (mapset && *mapset && strcmp(mapset, xmapset) != 0)
159 strcpy(xmapset, mapset);
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
char * G_store(const char *s)
Copy string to allocated memory.
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)
fully qualified file name
int G__name_in_mapset(const char *name_in, char *name_out, char *mapset)
Checks to see if 'name_in' is in the format: <name> in <mapset>
int G__name_is_fully_qualified(const char *fullname, char *name, char *mapset)
Check if map name is fully qualified (map @ mapset)