Next: , Previous: dll_prev, Up: Doubly Linked Lists


3.2.26 dll_prev_node

Get a handle to the node preceding a given node in a list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
DLLNode dll_prev_node( DLinkList ull, DLLNode unode );

Parameters

DLinkList ull
the list which contains the node
DLLNode unode
the following node

Description

Get a handle to the node preceding a given node in a list.

Returns

It returns NULL if there are no more nodes, else a handle to the node.