106void listTester(
void);
void * removeEntry(list_t *list, node_t *entry)
Definition linked_list.c:375
struct node * next
The next node in the list.
Definition linked_list.h:79
void unshift(list_t *list, void *val)
Add to the front of the list.
Definition linked_list.c:110
void * removeIdx(list_t *list, uint16_t index)
Remove at an index in the list.
Definition linked_list.c:311
struct node * prev
The previous node in the list.
Definition linked_list.h:80
node_t * last
The last node in the list.
Definition linked_list.h:89
void addBefore(list_t *list, void *val, node_t *entry)
Insert a value into the list immediately before the given node.
Definition linked_list.c:235
struct node node_t
A node in a doubly linked list with pointers to the previous and next values (which may be NULL),...
void addAfter(list_t *list, void *val, node_t *entry)
Insert a value into the list immediately after the given node.
Definition linked_list.c:274
void clear(list_t *list)
Remove all items from the list.
Definition linked_list.c:429
void * shift(list_t *list)
Remove from the front of the list.
Definition linked_list.c:138
int length
The number of nodes in the list.
Definition linked_list.h:90
void * val
A pointer to the data for this node.
Definition linked_list.h:78
bool addIdx(list_t *list, void *val, uint16_t index)
Add at an index in the list.
Definition linked_list.c:180
void push(list_t *list, void *val)
Add to the end of the list.
Definition linked_list.c:42
node_t * first
The first node in the list.
Definition linked_list.h:88
void * pop(list_t *list)
Remove from the end of the list.
Definition linked_list.c:70
A doubly linked list with pointers to the first and last nodes.
Definition linked_list.h:87
A node in a doubly linked list with pointers to the previous and next values (which may be NULL),...
Definition linked_list.h:77