GRASS GIS 7 Programmer's Manual
7.0.5(2016)-r00000
do_list.c
Go to the documentation of this file.
1
14
#include <grass/gis.h>
15
#include <grass/glocale.h>
16
17
#include "manage_local_proto.h"
18
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
}
nlist
int nlist
Definition:
read_list.c:23
G_fatal_error
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
Definition:
gis/error.c:159
element
Definition:
lidar.h:89
G_list_element
void G_list_element(const char *element, const char *desc, const char *mapset, int(*lister)(const char *, const char *, const char *))
General purpose list function.
Definition:
gis/list.c:50
list
struct list * list
Definition:
read_list.c:24
M_do_list
void M_do_list(int n, const char *mapset)
List elements.
Definition:
do_list.c:25
manage
do_list.c
Generated on Sun Oct 2 2016 20:26:53 for GRASS GIS 7 Programmer's Manual by
1.8.12