list.c File Reference

#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <grass/gis.h>
#include <grass/glocale.h>

Include dependency graph for list.c:

Go to the source code of this file.

Functions

int G_set_list_hit_return (int flag)
int G_list_element (char *element, char *desc, char *mapset, int(*lister)())
char ** G_list (int element, const char *gisbase, const char *location, const char *mapset)
 List specified type of elements. Application must release the allocated memory.
void G_free_list (char **list)


Function Documentation

void G_free_list ( char **  list  ) 

Definition at line 354 of file list.c.

References G_free().

char** G_list ( int  element,
const char *  gisbase,
const char *  location,
const char *  mapset 
)

List specified type of elements. Application must release the allocated memory.

Parameters:
element Element type (G_ELEMENT_RASTER, G_ELEMENT_VECTOR, G_ELEMENT_REGION )
gisbase Path to GISBASE
location Location name
mapset Mapset name
Returns:
Zero terminated array of element names

Definition at line 285 of file list.c.

References G_calloc(), G_fatal_error(), G_free(), G_malloc(), and NULL.

int G_list_element ( char *  element,
char *  desc,
char *  mapset,
int(*)()  lister 
)

Definition at line 66 of file list.c.

References G__mapset_name(), G_pclose(), and G_popen().

int G_set_list_hit_return ( int  flag  ) 

Definition at line 60 of file list.c.


Generated on Sun Apr 6 17:32:21 2008 for GRASS by  doxygen 1.5.5