grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

list.c File Reference

Manage Library - Element info. More...

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

Go to the source code of this file.

Functions

const 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.

Author
Original author CERL

Definition in file list.c.

Function Documentation

◆ M_get_element()

int M_get_element ( const char *  data_type)

Find element type by name.

Parameters
data_typeelement type
Returns
element id
-1 not found

Definition at line 42 of file list.c.

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

◆ M_get_list()

const struct list * M_get_list ( int  n)

Get list structure.

Parameters
nelement id
Returns
pointer to list structure
NULL on error

Definition at line 26 of file list.c.

References nlist, and NULL.