GRASS GIS 7 Programmer's Manual
7.0.3(2016)-r00000
Main Page
Related Pages
Data Structures
Files
File List
Globals
show_elem.c
Go to the documentation of this file.
1
14
#include <stdio.h>
15
#include <string.h>
16
17
#include "manage_local_proto.h"
18
22
void
M_show_elements
(
void
)
23
{
24
int
n;
25
unsigned
int
len;
26
27
len = 0;
28
for
(n = 0; n <
nlist
; n++)
29
if
(strlen(
list
[n].alias) > len)
30
len = strlen(
list
[n].alias);
31
for
(n = 0; n <
nlist
; n++)
32
fprintf(stdout,
" %-*s (%s)\n"
, len,
list
[n].alias,
list
[n].text);
33
}
nlist
int nlist
Definition:
read_list.c:23
list
struct list * list
Definition:
read_list.c:24
M_show_elements
void M_show_elements(void)
Print element name/desc to stdout.
Definition:
show_elem.c:22
manage
show_elem.c
Generated on Tue Apr 5 2016 12:25:31 for GRASS GIS 7 Programmer's Manual by
1.8.11