Loading...
Searching...
No Matches
gisdbase.c
Go to the documentation of this file.
/*!
\file lib/gis/gisdbase.c
\brief GIS library - environment routines (gisdbase)
(C) 2001-2009 by the GRASS Development Team
This program is free software under the
GNU General Public License (>=v2).
Read the file COPYING that comes with GRASS
for details.
\author Original author CERL
*/
#include <grass/gis.h>
/*!
* \brief Get name of top level database directory
*
* Returns the full UNIX path name of the directory which holds the
* database locations.
*
* \return pointer to string containing the base directory
*/
const char *G_gisdbase(void)
{
return G_getenv("GISDBASE");
}
G_getenv
const char * G_getenv(const char *name)
Get environment variable.
Definition env.c:360
G_gisdbase
const char * G_gisdbase(void)
Get name of top level database directory.
Definition gisdbase.c:26