GRASS 8 Programmer's Manual
8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
show_elem.c
Go to the documentation of this file.
1
/*!
2
\file lib/manage/show_elem.c
3
4
\brief Manage Library - Show elements
5
6
SPDX-FileCopyrightText: 2001-2011 GRASS Development Team
7
SPDX-License-Identifier: GPL-2.0-or-later
8
9
\author Original author CERL
10
*/
11
12
#include <
stdio.h
>
13
#include <
string.h
>
14
15
#include "manage_local_proto.h"
16
17
/*!
18
\brief Print element name/desc to stdout
19
*/
20
void
M_show_elements
(
void
)
21
{
22
int
n;
23
unsigned
int
len;
24
25
len = 0;
26
for
(n = 0; n <
nlist
; n++)
27
if
(
strlen
(
list
[n].alias) > len)
28
len =
strlen
(
list
[n].alias);
29
for
(n = 0; n <
nlist
; n++)
30
fprintf
(
stdout
,
" %-*s (%s)\n"
, len,
list
[n].alias,
list
[n].text);
31
}
AMI_STREAM
Definition
ami_stream.h:153
nlist
int nlist
Definition
read_list.c:21
M_show_elements
void M_show_elements(void)
Print element name/desc to stdout.
Definition
show_elem.c:20
stdio.h
string.h
list
Definition
manage.h:4
lib
manage
show_elem.c
Generated on Sun Sep 13 2026 06:57:50 for GRASS 8 Programmer's Manual by
1.9.8