GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
find_vect.c
Go to the documentation of this file.
1 
14 #include <string.h>
15 
16 #include <grass/config.h>
17 #include <grass/gis.h>
18 #include <grass/vect/dig_defines.h>
19 #include <grass/glocale.h>
20 
41 const char *G_find_vector(char *name, const char *mapset)
42 {
43  G_debug(1, "G_find_vector(): name=%s mapset=%s", name, mapset);
44  return G_find_file(GV_DIRECTORY, name, mapset);
45 }
46 
62 const char *G_find_vector2(const char *name, const char *mapset)
63 {
64  G_debug(1, "G_find_vector2(): name=%s mapset=%s", name, mapset);
65  return G_find_file2(GV_DIRECTORY, name, mapset);
66 }
67 
const 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.
Definition: find_file.c:203
const char * G_find_vector(char *name, const char *mapset)
Finds a vector map.
Definition: find_vect.c:41
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition: debug.c:65
const char * name
Definition: named_colr.c:7
const char * G_find_vector2(const char *name, const char *mapset)
Find a vector map (look but don&#39;t touch)
Definition: find_vect.c:62
const 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) ...
Definition: find_file.c:247