GRASS 8 Programmer's Manual 8.6.0dev(2026)-c83afef6d3
Loading...
Searching...
No Matches
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 SPDX-FileCopyrightText: 2001-2009 GRASS Development Team
7 SPDX-License-Identifier: GPL-2.0-or-later
8
9 \author Original author CERL
10 */
11
12#include <grass/gis.h>
13
14/*!
15 * \brief Get name of top level database directory
16 *
17 * Returns the full UNIX path name of the directory which holds the
18 * database locations.
19 *
20 * \return pointer to string containing the base directory
21 */
22const char *G_gisdbase(void)
23{
24 return G_getenv("GISDBASE");
25}
const char * G_getenv(const char *)
Get environment variable.
Definition env.c:358
const char * G_gisdbase(void)
Get name of top level database directory.
Definition gisdbase.c:22