27 *location = *mapset = 0;
34 ok = (fscanf(fd,
"%s %s", location, mapset) == 2);
37 *location = *mapset = 0;
38 G_warning(
_(
"Unable to read target file for group [%s]"), group);
61 int I_put_target(
const char *group,
const char *location,
const char *mapset)
69 fprintf(fd,
"%s\n%s\n", location, mapset);
void G_warning(const char *,...) __attribute__((format(printf
void int G_suppress_warnings(int)
Suppress printing a warning message to stderr.
FILE * I_fopen_group_file_new(const char *, const char *)
FILE * I_fopen_group_file_old(const char *, const char *)
Open group file for reading.
int I_get_target(const char *group, char *location, char *mapset)
read target information
int I_put_target(const char *group, const char *location, const char *mapset)
write target information