GRASS GIS 7 Programmer's Manual
7.0.5(2016)-r00000
manage/find.c
Go to the documentation of this file.
1
14
#include <string.h>
15
#include <grass/gis.h>
16
17
#include "manage_local_proto.h"
18
29
const
char
*
M_find
(
int
n,
char
*
name
,
const
char
*mapsets)
30
{
31
const
char
*mapset;
32
33
mapset =
G_find_file2
(
list
[n].
element
[0], name, mapsets);
34
if
(mapset) {
35
char
temp[GNAME_MAX];
36
37
sscanf(name,
"%s"
, temp);
38
strcpy(name, temp);
39
}
40
return
mapset;
41
}
M_find
const char * M_find(int n, char *name, const char *mapsets)
Find element in data base.
Definition:
manage/find.c:29
element
Definition:
lidar.h:89
list
struct list * list
Definition:
read_list.c:24
name
const char * name
Definition:
named_colr.c:7
G_find_file2
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't touch) ...
Definition:
find_file.c:247
manage
find.c
Generated on Thu Dec 1 2016 19:05:05 for GRASS GIS 7 Programmer's Manual by
1.8.12