Functions | |
int | u_list_create (u_list_t **plist) |
Create a new list object. | |
void | u_list_free (u_list_t *list) |
Free the list object: note the list doesn't own the pointers in it, the client must free them. | |
int | u_list_add (u_list_t *list, void *ptr) |
Push an element to the list. | |
int | u_list_del (u_list_t *list, void *ptr) |
Pop an element from the list. | |
size_t | u_list_count (u_list_t *list) |
Count elements in list. | |
void * | u_list_get_n (u_list_t *list, size_t n) |
Get the n-th element in list. |
|
list the partent list object (created via u_list_new) ptr the element that has to be push'd
Definition at line 88 of file list.c. References u_free(), and u_zalloc(). |
|
list a list object
|
|
plist the newly created list object as a result argument
Definition at line 36 of file list.c. References u_free(), and u_zalloc(). |
|
list the partent list object (created via u_list_new) ptr the element that has to be pop'd
Definition at line 118 of file list.c. References u_free(). |
|
list the list object that has to be disposed
Definition at line 62 of file list.c. References u_free(). |
|
list a list object n the ordinal of the element that should be retrieved
|