find_vect.c

Go to the documentation of this file.
00001 /*
00002  **********************************************************************
00003  *  char *
00004  *  G_find_vector (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 vector file from the mapset search list
00010  *      or in a specified mapset.
00011  *      returns the mapset name where the vector file was found.
00012  *
00013  *  returns:
00014  *      char *  pointer to a string with name of mapset
00015  *              where vector 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 #include <grass/vect/dig_defines.h>
00025 
00026 char *
00027 G_find_vector  (char *name, char *mapset)
00028 
00029 {
00030         return G_find_file ( GRASS_VECT_DIRECTORY, name, mapset);
00031 }
00032 
00033 char *
00034 G_find_vector2  (char *name, char *mapset)
00035 
00036 {
00037         return G_find_file2 (GRASS_VECT_DIRECTORY, name, mapset);
00038 }

Generated on Wed Dec 19 14:59:05 2007 for GRASS by  doxygen 1.5.4