gisdbase.c 629 B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. \file lib/gis/gisdbase.c
  3. \brief GIS library - environment routines (gisdbase)
  4. (C) 2001-2009 by the GRASS Development Team
  5. This program is free software under the
  6. GNU General Public License (>=v2).
  7. Read the file COPYING that comes with GRASS
  8. for details.
  9. \author Original author CERL
  10. */
  11. #include <grass/gis.h>
  12. /*!
  13. * \brief Get name of top level database directory
  14. *
  15. * Returns the full UNIX path name of the directory which holds the
  16. * database locations.
  17. *
  18. * \return pointer to string containing the base directory
  19. */
  20. const char *G_gisdbase(void)
  21. {
  22. return G_getenv("GISDBASE");
  23. }