11 #include <grass/gis.h> 
   22         if (!fgets(title, 
sizeof title, fd))    
 
   24         else if (!
G_getl(title, 
sizeof title, fd))      
 
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. 
char * G_get_dig_title(const char *name, const char *mapset)