7 #include <grass/imagery.h>
23 if (group ==
NULL || *group == 0)
33 if (file ==
NULL || *file == 0)
41 char element[GNAME_MAX];
45 if (subgroup ==
NULL || *subgroup == 0)
48 sprintf(element,
"subgroup/%s", subgroup);
56 char element[GNAME_MAX * 2];
60 if (subgroup ==
NULL || *subgroup == 0)
62 if (file ==
NULL || *file == 0)
65 sprintf(element,
"subgroup/%s/%s", subgroup, file);
char * G_mapset(void)
current mapset name
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
char * G_find_file2_misc(const char *dir, const char *element, const char *name, const char *mapset)
int I_find_subgroup(const char *group, const char *subgroup)
int I_find_group(const char *group)
does group exist?
int I_find_group_file(const char *group, const char *file)
char * G_find_file2(const char *element, const char *name, const char *mapset)
searches for a file from the mapset search list or in a specified mapset. (look but don't touch) retu...
int I_find_subgroup_file(const char *group, const char *subgroup, const char *file)