GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cell_title.c File Reference
#include <grass/gis.h>
Include dependency graph for cell_title.c:

Go to the source code of this file.

Functions

char * G_get_cell_title (const char *name, const char *mapset)
 get raster map title More...
 

Function Documentation

char* G_get_cell_title ( const char *  name,
const char *  mapset 
)

get raster map title

If only the map layer title is needed, it is not necessary to read the entire category file into memory. This routine gets the title for raster map name in mapset directly from the category file, and returns a pointer to the title. A legal pointer is always returned. If the map layer does not have a title, then a pointer to the empty string "" is returned.

Parameters
name
mapset
Returns
char *

Definition at line 27 of file cell_title.c.

References fclose(), fd, G_fopen_old(), G_getl(), G_store(), G_strip(), and stat.