15 #include <grass/gis.h>
16 #include <grass/glocale.h>
99 const char *mapset,
char *str)
102 char buff[GNAME_MAX];
111 G_warning(_(
"Can't read %s for [%s in %s]"), elem, name, mapset);
114 if (
G_getl2(buff,
sizeof(buff) - 1, fd) == 0) {
145 G_warning(_(
"Can't create %s metadata file for [%s in %s]"),
150 fprintf(fd,
"%s", str);
char * G_mapset(void)
current mapset name
char * G_find_file2_misc(const char *dir, const char *element, const char *name, const char *mapset)
FILE * G_fopen_old_misc(const char *dir, const char *element, const char *name, const char *mapset)
open a database file for reading
int G_getl2(char *buf, int n, FILE *fd)
gets a line of text from a file of any pedigree
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
FILE * G_fopen_new_misc(const char *dir, const char *element, const char *name)
open a new database file