GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
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.
 

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

◆ 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
sub element:description
sub element:description
.
.
.
int main(void)
Definition winlocale.c:201
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

◆ list

◆ nlist