grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

read_list.c File Reference

Manage Library - Read list of elements. More...

#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "manage_local_proto.h"
Include dependency graph for read_list.c:

Go to the source code of this file.


static void format_error (char *, int, char *)
int M_read_list (int check_if_empty, int *num)
 Read list of elements. More...


int nlist
struct listlist

Detailed Description

Manage Library - Read list of elements.

(C) 2001-2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Original author CERL

Definition in file read_list.c.

Function Documentation

◆ format_error()

void format_error ( char *  element_list,
int  line,
char *  buf 

Definition at line 132 of file read_list.c.

References _, G_fatal_error(), and line().

Referenced by M_read_list().

◆ M_read_list()

int M_read_list ( int  check_if_empty,
int *  num 

Read list of elements.


# ... comments
main element:alias:description:menu text
sub element:description
sub element:description
int main(int argc, char *argv[])
Definition: main.c:27
Definition: lidar.h:87
check_if_emptyTRUE for check if element is empty

Definition at line 48 of file read_list.c.

References _, list::alias, list::desc, list::element, format_error(), G_fatal_error(), G_getl(), G_gisbase(), G_store(), G_strip(), getenv(), GPATH_MAX, line(), M__add_element(), M__empty(), list::maindesc, list::mainelem, list::nelem, nlist, list::status, and list::text.

Variable Documentation

◆ list

struct list* list

Definition at line 24 of file read_list.c.

◆ nlist