gisdbase.c 684 B

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. \file gisdbase.c
  3. \brief GIS library - environment routines (gisdbase)
  4. (C) 2001-2008 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. See GISDBASE for a full explanation of this
  17. * directory.
  18. *
  19. * \param
  20. * \return pointer to string containing the base directory
  21. */
  22. char *G_gisdbase(void)
  23. {
  24. return G_getenv("GISDBASE");
  25. }