GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73574
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gisdbase.c
Go to the documentation of this file.
1 /*!
2  \file lib/gis/gisdbase.c
3 
4  \brief GIS library - environment routines (gisdbase)
5 
6  (C) 2001-2009 by the GRASS Development Team
7 
8  This program is free software under the
9  GNU General Public License (>=v2).
10  Read the file COPYING that comes with GRASS
11  for details.
12 
13  \author Original author CERL
14  */
15 
16 #include <grass/gis.h>
17 
18 /*!
19  * \brief Get name of top level database directory
20  *
21  * Returns the full UNIX path name of the directory which holds the
22  * database locations.
23  *
24  * \return pointer to string containing the base directory
25  */
26 const char *G_gisdbase(void)
27 {
28  return G_getenv("GISDBASE");
29 }
const char * G_gisdbase(void)
Get name of top level database directory.
Definition: gisdbase.c:26
const char * G_getenv(const char *name)
Get environment variable.
Definition: env.c:336