find_grid3.c 795 B

12345678910111213141516171819202122232425
  1. #include <grass/gis.h>
  2. /*
  3. * \brief
  4. * searches for a grid3 file from the mapset search list
  5. * or in a specified mapset.
  6. * returns the mapset name where the cell file was found.
  7. *
  8. * note:
  9. * rejects all names that begin with '.'
  10. * if name is of the form nnn in ppp then
  11. * name = nnn and mapset = ppp
  12. *
  13. * \param const char *name file name to look for
  14. * \param const char *mapset mapset to search. if mapset is ""
  15. * will search in mapset search list
  16. * \return char * pointer to a string with name of mapset
  17. * where cell file was found, or NULL if not found
  18. */
  19. const char *G_find_grid3(const char *name, const char *mapset)
  20. {
  21. return G_find_file2_misc("grid3", "cell", name, mapset);
  22. }