Classes | |
| struct | s_list |
| struct | s_listitem |
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. | |
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 82 of file list.c.
References s_list::first, s_list::last, s_listitem::next, and s_list::size.
Referenced by index_insert().
| LIST * list_create | ( | void | ) |
Create a new list.
NULL on error, errnoENOMEM memory allocation failed Definition at line 50 of file list.c.
References s_list::first, s_list::last, and s_list::size.
Referenced by index_insert().
| void list_destroy | ( | LIST * | list | ) |
Destroy a list.
| list | a pointer to the LIST structure to destroy |
Definition at line 66 of file list.c.
References s_list::first, s_listitem::next, and s_list::size.