10 #include <grass/gis.h>
37 if (!fgets(title,
sizeof title, fd))
39 else if (!
G_getl(title,
sizeof title, fd))
char * G_get_cell_title(const char *name, const char *mapset)
get raster map title
char * G_store(const char *s)
Copy string to allocated memory.
int G_strip(char *buf)
Removes all leading and trailing white space from string.
int G_getl(char *buf, int n, FILE *fd)
gets a line of text from a file
FILE * G_fopen_old(const char *element, const char *name, const char *mapset)
Open a database file for reading.