void _LDL_cat(struct qelem* LMain, struct qelem* LSub, struct qelem* LTail)
This appends the sub list (LSub) onto the end of the main list (LMain). LTail is a pointer to the last item in the sub list.
# define LDL_foreach(IPtr,LDL)
This allows one to iterate over the doubly linked list, from first to last. The head of the list -- LDL -- is not covered as a member of the list.
size_t LDL_length(struct qelem* L)
Determines the length of the doubly linked list.
The length of the list.
void LDL_prepend(struct qelem* Elem, struct qelem* LDL)
Prepends the specified element, Elem, to the list LDL.
|