Contents

LDL

LDL

_LDL_cat

Syntax

void _LDL_cat(struct qelem* LMain, struct qelem* LSub, struct qelem* LTail)

Description

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.

LDL_foreach

Syntax

# define LDL_foreach(IPtr,LDL)

Description

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.

LDL_length

Syntax

size_t LDL_length(struct qelem* L)

Description

Determines the length of the doubly linked list.

Return Value

The length of the list.

LDL_prepend

Syntax

void LDL_prepend(struct qelem* Elem, struct qelem* LDL)

Description

Prepends the specified element, Elem, to the list LDL.


Author: Randall Maastop