GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73566
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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.

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:

# ... comments
main element:alias:description:menu text
.
.
.
Parameters
check_if_emptyTRUE for check if element is empty
Returns
0
1

Definition at line 48 of file read_list.c.

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

Variable Documentation