GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
find_grid3.c
Go to the documentation of this file.
1 #include <grass/gis.h>
2 
3 /*
4  * \brief
5  * searches for a grid3 file from the mapset search list
6  * or in a specified mapset.
7  * returns the mapset name where the cell file was found.
8  *
9  * note:
10  * rejects all names that begin with '.'
11  * if name is of the form nnn in ppp then
12  * name = nnn and mapset = ppp
13  *
14  * \param const char *name file name to look for
15  * \param const char *mapset mapset to search. if mapset is ""
16  * will search in mapset search list
17  * \return char * pointer to a string with name of mapset
18  * where cell file was found, or NULL if not found
19  */
20 
21 char *G_find_grid3(const char *name, const char *mapset)
22 {
23  return G_find_file2_misc("grid3", "cell", name, mapset);
24 }