GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73378
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manage/list.c File Reference

Manage Library - Element info. More...

#include <grass/gis.h>
#include "manage_local_proto.h"
Include dependency graph for manage/list.c:

Go to the source code of this file.


struct listM_get_list (int n)
 Get list structure. More...
int M_get_element (const char *data_type)
 Find element type by name. More...

Detailed Description

Manage Library - Element info.

(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 manage/list.c.

Function Documentation

int M_get_element ( const char *  data_type)

Find element type by name.

data_typeelement type
element id
-1 not found

Definition at line 42 of file manage/list.c.

References list::alias, G_strcasecmp(), and nlist.

struct list* M_get_list ( int  n)

Get list structure.

nelement id
pointer to list structure
NULL on error

Definition at line 26 of file manage/list.c.

References nlist, and NULL.