Next: sll_search, Previous: sll_prev, Up: Singly Linked Lists
Get a handle to the node previous to a given node in a list.
#include <linklist/linklist.h>SLLNode sll_prev_node( SLinkList ull, SLLNode unode );
SLinkList ull
- the list which contains the node
SLLNode unode
- the following node
Search a singly linked list starting at the list head and determine the node previous to the passed node. This is a very expensive operation! Before using this, think about using a doubly linked list!
It returns NULL
if there is none, else a handle to the node.