GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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

◆ M_read_list()

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, GPATH_MAX, and list::text.

Variable Documentation

◆ list

◆ nlist