GRASS GIS 7 Programmer's Manual  7.0.2(2015)-r00000
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 }
int nlist
Definition: read_list.c:23
struct list * list
Definition: read_list.c:24
void M_show_elements(void)
Print element name/desc to stdout.
Definition: show_elem.c:22