20 if (mapset ==
NULL || *mapset == 0)
28 return ((FILE *)
NULL);
40 const char *mapset,
const char *
file)
45 if (mapset ==
NULL || *mapset == 0)
51 _(
"Unable to find file [%s] for subgroup [%s] of group [%s in %s]"),
52 file, subgroup, group, mapset);
54 return ((FILE *)
NULL);
63 _(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
64 file, subgroup, group, mapset);
75 G_warning(
_(
"Unable to create file [%s] of group [%s in %s]"),
file,
130 sprintf(
element,
"%s/subgroup/%s", group, subgroup);
134 sprintf(
element,
"subgroup/%s/%s", subgroup,
file);
138 G_warning(
_(
"Unable to create file [%s] for subgroup [%s] of group [%s "
152 sprintf(
element,
"%s/subgroup/%s", group, subgroup);
156 sprintf(
element,
"subgroup/%s/%s", subgroup,
file);
161 _(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
174 const char *mapset,
const char *
file)
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database misc file for reading
int G__make_mapset_element_misc(const char *, const char *)
Create misc element in the current mapset.
void G_warning(const char *,...) __attribute__((format(printf
FILE * G_fopen_append_misc(const char *, const char *, const char *)
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.
int I_find_group_file2(const char *, const char *, const char *)
Searches for a group file in the specified mapset.
int I_find_subgroup_file2(const char *, const char *, const char *, const char *)
Searches for a subgroup file in the specified mapset.
FILE * I_fopen_subgroup_file_old(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_group_file_append(const char *group, const char *file)
FILE * I_fopen_group_file_old(const char *group, const char *file)
Open group file for reading.
FILE * I_fopen_subgroup_file_new(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_group_file_old2(const char *group, const char *mapset, const char *file)
Open group file for reading.
FILE * fopen_subgroup_file_old(const char *group, const char *subgroup, const char *mapset, const char *file)
FILE * I_fopen_subgroup_file_old2(const char *group, const char *subgroup, const char *mapset, const char *file)
FILE * I_fopen_group_file_new(const char *group, const char *file)
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)