|
clist
A multi-mode C linked list library/implementation
|
Provides the function prototypes and the list structures. This header provides the prototypes of the list functions for the source files and provides the node and the list structure. More...
#include <stdlib.h>Go to the source code of this file.
Data Structures | |
| struct | node |
| A single node element for the list. More... | |
| struct | clist |
| A double-way linked list. More... | |
Functions | |
| struct clist * | clist_init (size_t item_size) |
| Create a clist. More... | |
| size_t | clist_free (struct clist *clist) |
| Frees a list. More... | |
| void * | clist_append (struct clist *clist, const void *item) |
| Append an item. More... | |
| void * | clist_pop (struct clist *clist) |
| Pops the last item from a clist. More... | |
| size_t | clist_length (const struct clist *clist) |
| Returns the length of the list. More... | |
| void * | clist_jump (struct clist *clist, unsigned long index) |
| Jump to the given index. More... | |
| void * | clist_read (const struct clist *clist) |
| Return the item on the current index. More... | |
| void * | clist_write (const struct clist *clist, void *item) |
| Replace the item on the current index. More... | |
| void * | clist_insert (struct clist *clist, void *item, unsigned long index) |
| Insert an item. More... | |
| void * | clist_remove (struct clist *clist, unsigned long index) |
| Remove an item. More... | |
Provides the function prototypes and the list structures. This header provides the prototypes of the list functions for the source files and provides the node and the list structure.