GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
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
}
G_getenv
const char * G_getenv(const char *)
Get environment variable.
Definition:
env.c:360
gis.h
G_gisdbase
const char * G_gisdbase(void)
Get name of top level database directory.
Definition:
gisdbase.c:26
lib
gis
gisdbase.c
Generated on Thu Nov 21 2024 07:03:27 for GRASS GIS 8 Programmer's Manual by
1.9.1