GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
manage/find.c
Go to the documentation of this file.
1
/*!
2
\file lib/manage/find.c
3
4
\brief Manage Library - Find element in data base
5
6
(C) 2001-2011 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Original author CERL
12
*/
13
14
#include <string.h>
15
#include <
grass/gis.h
>
16
17
#include "manage_local_proto.h"
18
19
/*!
20
\brief Find element in data base
21
22
\param n element id
23
\param name element name
24
\param mapsets name of mapsets
25
26
\return mapset if found
27
\return if not found
28
*/
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
G_find_file2
const char * G_find_file2(const char *, const char *, const char *)
Searches for a file from the mapset search list or in a specified mapset. (look but don't touch) ...
Definition:
find_file.c:247
gis.h
element
Definition:
lidar.h:86
list
Definition:
manage.h:4
GNAME_MAX
#define GNAME_MAX
Definition:
gis.h:167
name
const char * name
Definition:
named_colr.c:7
lib
manage
find.c
Generated on Mon May 31 2021 05:21:29 for GRASS GIS 7 Programmer's Manual by
1.8.13