Functions | |
| LISTITEM * | list_append (LIST *list, void *data) |
| Append an item to a list. | |
| LIST * | list_create (void) |
| Create a new list. | |
| void | list_destroy (LIST *list) |
| Destroy a list. | |
| void | list_shuffle (LIST *list) |
| Shuffle a list. | |
| LISTITEM * list_append | ( | LIST * | list, | |
| void * | data | |||
| ) |
Append an item to a list.
NULL on error, errnoENOMEM memory allocation failed | list | a pointer to the LIST structure to which the item it to be appended |
| data | a pointer to the data which the new LISTITEM will contain |
Definition at line 83 of file list.c.
Referenced by index_insert().
| LIST * list_create | ( | void | ) |
Create a new list.
NULL on error, errnoENOMEM memory allocation failed Definition at line 51 of file list.c.
Referenced by index_insert().
| void list_destroy | ( | LIST * | list | ) |