Define LLIST_ITER
Defined in File llist.h
Define Documentation
-
LLIST_ITER(LIST, START, DIR, VAR)
Same as LLIST_FOREACH(). but the
START
parameter allows you to start at an arbitrary location in the list. Pass list->first as theSTART
parameter to make it the same as LLIST_FOREACH().You cannot use this macro directly if you are manipulating the next/prev fields. You cannot call this macro on a NULL/unitialized list.
- Parameters:
LIST – The llist.
START – The starting locating with the linked list (must point to a node in the list).
DIR – The name of the field used for traversal (next or prev) which sets the direction of traversal.
VAR – The name of the local variable you want to use when iterating over the list.