GRASS Programmer's Manual  6.4.1(2011)
find_cell.c
Go to the documentation of this file.
00001 /*
00002  **********************************************************************
00003  *  char *
00004  *  G_find_cell (name, mapset)
00005  *        char *name       file name to look for
00006  *        char *mapset     mapset to search. if mapset is ""
00007  *                         will search in mapset search list
00008  *
00009  *      searches for a cell file from the mapset search list
00010  *      or in a specified mapset.
00011  *      returns the mapset name where the cell file was found.
00012  *
00013  *  returns:
00014  *      char *  pointer to a string with name of mapset
00015  *              where cell file was found, or NULL if not found
00016  *  note:
00017  *      rejects all names that begin with .
00018  *
00019  *      if name is of the form nnn in ppp then 
00020  *      name = nnn and mapset = ppp
00021  **********************************************************************/
00022 
00023 #include <grass/gis.h>
00024 
00025 
00063 char *G_find_cell(char *name, const char *mapset)
00064 {
00065     return G_find_file("cell", name, mapset);
00066 }
00067 
00068 
00083 char *G_find_cell2(const char *name, const char *mapset)
00084 {
00085     return G_find_file2("cell", name, mapset);
00086 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines