19 typedef struct sListNode
struct sListNode * next
Next node.
int listRemoveLst(List list, void **value)
Removes the last element of a list.
int listSize(List list)
Returns the size of a list.
int listInsertAt(List list, int index, void *value)
Inserts an new element at the specified position of a list.
SListNode * ListNode
Linked list node definition.
int listInsertFst(List list, void *value)
Inserts an element at the beginning of a list.
Iterator listIterator(List list)
Creates an iterator from a list.
int size
Number of elements of this linked list.
int listAt(List list, int index, void **value)
Provides the element at the specified position of a list.
void listDelete(List list)
Deletes a list.
int listRemoveAt(List list, int index, void **value)
Removes the element at the specified position of a list.
ListNode first
First node.
Linked list node structure.
List newList(void)
Creates a list.
int listRemoveFst(List list, void **value)
Removes the first element of a list.
struct sListNode * prev
Previous node.
int listInsertLst(List list, void *value)
Inserts an element at the end of a list.
SList * List
Linked list definition.
int listLst(List list, void **value)
Provides the value at the last position of a list.
int listMap(List list, void(*fun)(void *))
Applies a function to the elements of a list.
Implementation of an iterator.
void * value
Node's value.
int listFst(List list, void **value)
Provides the value at the first position of a list.