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
do_list.c
Go to the documentation of this file.
1
/*!
2
\file lib/manage/do_list.c
3
4
\brief Manage Library - List elements
5
6
(C) 2001-2012 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 <
grass/gis.h
>
15
#include <
grass/glocale.h
>
16
17
#include "manage_local_proto.h"
18
19
/*!
20
\brief List elements
21
22
\param n element index in the array (negative value for all elements)
23
\param mapset name of mapset ("" for search path)
24
*/
25
void
M_do_list
(
int
n,
const
char
*mapset)
26
{
27
int
i;
28
29
if
(n >=
nlist
) {
30
G_fatal_error
(
_
(
"%s: invalid index %d"
),
"M_do_list()"
, n);
31
}
32
33
if
(n < 0) {
34
for
(i = 0; i <
nlist
; i++) {
35
G_list_element
(
list
[i].
element
[0],
list
[i].desc[0],
36
mapset, (
int
(*)())0);
37
}
38
}
39
else
{
40
G_list_element
(
list
[n].
element
[0],
list
[n].desc[0],
41
mapset, (
int
(*)())0);
42
}
43
}
glocale.h
G_fatal_error
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
nlist
int nlist
Definition:
read_list.c:23
gis.h
element
Definition:
lidar.h:86
M_do_list
void M_do_list(int n, const char *mapset)
List elements.
Definition:
do_list.c:25
G_list_element
void G_list_element(const char *, const char *, const char *, int(*)(const char *, const char *, const char *))
General purpose list function.
Definition:
gis/list.c:50
list
Definition:
manage.h:4
_
#define _(str)
Definition:
glocale.h:10
lib
manage
do_list.c
Generated on Mon May 31 2021 05:21:28 for GRASS GIS 7 Programmer's Manual by
1.8.13