- list_append
list_t list_append(list_t* plist, void* ptr)
- list_apply
void list_apply(list_t* plist, void function(void*) @(nogc) nothrow fp)
Apply a function fp to each member of a list.
- list_data
int list_data(list_t list)
- list_equal
int list_equal(list_t list1, list_t list2)
- list_free
void list_free(list_t* plist, list_free_fp freeptr)
- list_inlist
list_t list_inlist(list_t list, void* ptr)
- list_next
list_t list_next(list_t list)
- list_nitems
int list_nitems(list_t list)
Count up and return number of items in list.
- list_nth
list_t list_nth(list_t list, int n)
- list_pop
void* list_pop(list_t* plist)
Remove first element in list pointed to by *plist.
- list_prepend
list_t list_prepend(list_t* plist, void* ptr)
- list_prependdata
void list_prependdata(list_t* plist, int d)
Prepend integer item to list.
- list_ptr
inout(void)* list_ptr(inout list_t list)
- list_reverse
list_t list_reverse(list_t l)
- list_subtract
void* list_subtract(list_t* plist, void* ptr)
Remove ptr from the list pointed to by *plist.
Output:
*plist is updated to be the start of the new list
Interface to the C linked list type.
List is a complete package of functions to deal with singly linked lists of pointers or integers. Features: 1. Uses mem package. 2. Has loop-back tests. 3. Each item in the list can have multiple predecessors, enabling different lists to 'share' a common tail.