20 if (mapset ==
NULL || *mapset == 0)
25 G_warning(
_(
"Unable to find file [%s] of group [%s in %s]"),
28 return ((FILE *)
NULL);
33 G_warning(
_(
"Unable to open file [%s] of group [%s in %s]"),
41 const char *subgroup,
const char *mapset,
47 if (mapset ==
NULL || *mapset == 0)
52 G_warning(
_(
"Unable to find file [%s] for subgroup [%s] of group [%s in %s]"),
53 file, subgroup, group, mapset);
55 return ((FILE *)
NULL);
59 sprintf(element,
"subgroup/%s/%s", subgroup, file);
63 G_warning(
_(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
64 file, subgroup, group, mapset);
76 G_warning(
_(
"Unable to create file [%s] of group [%s in %s]"),
89 G_warning(
_(
"Unable to open file [%s] of group [%s in %s]"),
128 const char *subgroup,
const char *
file)
134 sprintf(element,
"%s/subgroup/%s", group, subgroup);
138 sprintf(element,
"subgroup/%s/%s", subgroup, file);
142 G_warning(
_(
"Unable to create file [%s] for subgroup [%s] of group [%s in %s]"),
150 const char *subgroup,
const char *
file)
156 sprintf(element,
"%s/subgroup/%s", group, subgroup);
160 sprintf(element,
"subgroup/%s/%s", subgroup, file);
164 G_warning(
_(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
172 const char *subgroup,
const char *
file)
178 const char *subgroup,
const char *mapset,
FILE * G_fopen_append_misc(const char *, const char *, const char *)
FILE * I_fopen_subgroup_file_append(const char *group, const char *subgroup, const char *file)
FILE * fopen_group_file_old(const char *group, const char *mapset, const char *file)
FILE * I_fopen_group_file_append(const char *group, const char *file)
int G__make_mapset_element_misc(const char *, const char *)
Create misc element in the current mapset.
int I_find_subgroup_file2(const char *, const char *, const char *, const char *)
Searches for a subgroup file in the specified mapset.
int I_find_group_file2(const char *, const char *, const char *)
Searches for a group file in the specified mapset.
FILE * I_fopen_subgroup_file_old(const char *group, const char *subgroup, const char *file)
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database misc file for reading
FILE * I_fopen_subgroup_file_new(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_group_file_old(const char *group, const char *file)
Open group file for reading.
FILE * I_fopen_group_file_new(const char *group, const char *file)
FILE * I_fopen_group_file_old2(const char *group, const char *mapset, const char *file)
Open group file for reading.
FILE * G_fopen_new_misc(const char *, const char *, const char *)
open a new database misc file
const char * G_mapset(void)
Get current mapset name.
void G_warning(const char *,...) __attribute__((format(printf
FILE * I_fopen_subgroup_file_old2(const char *group, const char *subgroup, const char *mapset, const char *file)
FILE * fopen_subgroup_file_old(const char *group, const char *subgroup, const char *mapset, const char *file)