2
/**************************************************************
3
* char *G_get_cell_title (name, mapset)
4
* char *name name of map file
5
* char *mapset mapset containing name
7
* returns pointer to string containing cell title. (from cats file)
8
*************************************************************/
11
#include <grass/gis.h>
13
char *G_get_dig_title(const char *name, const char *mapset)
19
fd = G_fopen_old("dig_cats", name, mapset);
22
if (!fgets(title, sizeof title, fd)) /* skip number of cats */
24
else if (!G_getl(title, sizeof title, fd)) /* read title */
35
return G_store(title);