GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-77aab223bc
|
Go to the source code of this file.
Functions | |
void | G_free_ilist (struct ilist *list) |
Free allocated memory of an integer list. More... | |
struct ilist * | G_new_ilist (void) |
Return a new integer list. More... | |
void | G_init_ilist (struct ilist *list) |
Init an integer list and free allocated memory. More... | |
void | G_ilist_add (struct ilist *list, int val) |
Add item to ilist. More... | |
void G_free_ilist | ( | struct ilist * | list | ) |
Free allocated memory of an integer list.
list | The pointer to an integer list |
Definition at line 27 of file ilist.c.
References G_free().
Referenced by Rast_close_vrt().
void G_ilist_add | ( | struct ilist * | list, |
int | val | ||
) |
Add item to ilist.
This function adds an integer to the list but does not check for duplicates. In case reallocation fails, G_fatal_error() will be invoked by the allocation function.
list | The ilist pointer |
val | The value to attach |
Definition at line 78 of file ilist.c.
References G_realloc.
Referenced by Rast_get_vrt().
void G_init_ilist | ( | struct ilist * | list | ) |
Init an integer list and free allocated memory.
list | The pointer to an integer list |
Definition at line 58 of file ilist.c.
References G_free(), and NULL.
Referenced by G_new_ilist(), and RTreeSearch2().
struct ilist* G_new_ilist | ( | void | ) |
Return a new integer list.
G_fatal_error() will be invoked by the allocation function.
Definition at line 43 of file ilist.c.
References G_init_ilist(), G_malloc, l, and NULL.
Referenced by Rast_get_vrt().