Simple C Expat Wrapper (SCEW)
1.1.7
|
Allocate and free new lists. More...
Files | |
file | list.h |
SCEW general list implementation. | |
Functions | |
SCEW_API scew_list * | scew_list_create (void *data) |
Creates a new list item with the given data. More... | |
SCEW_API void | scew_list_free (scew_list *list) |
Frees all the items from the given list. More... | |
Allocate and free new lists.
SCEW_API scew_list* scew_list_create | ( | void * | data | ) |
Creates a new list item with the given data.
Note that there is no difference between list items and lists, that is, a list item is a list itself.
SCEW_API void scew_list_free | ( | scew_list * | list | ) |
Frees all the items from the given list.
The data pointers are not freed, thus they need to be freed separately.