GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
find_cell.c
Go to the documentation of this file.
1 /*
2  **********************************************************************
3  * char *
4  * G_find_cell (name, mapset)
5  * char *name file name to look for
6  * char *mapset mapset to search. if mapset is ""
7  * will search in mapset search list
8  *
9  * searches for a cell file from the mapset search list
10  * or in a specified mapset.
11  * returns the mapset name where the cell file was found.
12  *
13  * returns:
14  * char * pointer to a string with name of mapset
15  * where cell file was found, or NULL if not found
16  * note:
17  * rejects all names that begin with .
18  *
19  * if name is of the form nnn in ppp then
20  * name = nnn and mapset = ppp
21  **********************************************************************/
22 
23 #include <grass/gis.h>
24 
25 
63 char *G_find_cell(char *name, const char *mapset)
64 {
65  return G_find_file("cell", name, mapset);
66 }
67 
68 
83 char *G_find_cell2(const char *name, const char *mapset)
84 {
85  return G_find_file2("cell", name, mapset);
86 }
string name
Definition: render.py:1314
char * G_find_cell2(const char *name, const char *mapset)
find a raster map (look but don&#39;t touch)
Definition: find_cell.c:83
char * G_find_cell(char *name, const char *mapset)
find a raster map
Definition: find_cell.c:63
char * G_find_file2(const char *element, const char *name, const char *mapset)
searches for a file from the mapset search list or in a specified mapset. (look but don&#39;t touch) retu...
Definition: find_file.c:191
char * G_find_file(const char *element, char *name, const char *mapset)
searches for a file from the mapset search list or in a specified mapset. returns the mapset name whe...
Definition: find_file.c:159