#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>
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) |
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.
element | Element type (G_ELEMENT_RASTER, G_ELEMENT_VECTOR, G_ELEMENT_REGION ) | |
gisbase | Path to GISBASE | |
location | Location name | |
mapset | Mapset name |
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 | |||
) |