GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
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.

Functions

int M_read_list (int check_if_empty, int *num)
 Read list of elements. More...
 

Variables

int nlist
 
struct list * list
 

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.

Author
Original author CERL

Definition in file read_list.c.

Function Documentation

int M_read_list ( int  check_if_empty,
int *  num 
)

Read list of elements.

Format:

1 # ... comments
2 main element:alias:description:menu text
3  sub element:description
4  sub element:description
5  .
6  .
7  .
Parameters
check_if_emptyTRUE for check if element is empty
Returns
0
1

Definition at line 48 of file read_list.c.

References G_fatal_error(), G_getl(), G_gisbase(), G_store(), G_strip(), list, M__add_element(), M__empty(), and nlist.

Variable Documentation