GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
42 char *G_gisbase(void)
43 {
44  return G_getenv("GISBASE");
45 }
char * G_getenv(const char *name)
Get environment variable.
Definition: env.c:267
char * G_gisbase(void)
top level module directory
Definition: gisbase.c:42