GRASS GIS 7 Programmer's Manual  7.0.4(2016)-r00000
gisbase.c
Go to the documentation of this file.
1 
2 /**********************************************************************
3  *
4  * char *
5  * G_gisbase()
6  *
7  * returns: pointer to string containing the base directory of
8  * GRASS-GRID
9  **********************************************************************/
10 
11 #include <grass/gis.h>
12 
13 
41 const char *G_gisbase(void)
42 {
43  return G_getenv("GISBASE");
44 }
const char * G_gisbase(void)
Get full path name of the top level module directory.
Definition: gisbase.c:41
const char * G_getenv(const char *name)
Get environment variable.
Definition: env.c:336