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


3.2.25 dll_prev

Retrieve the data in the node preceding a given node in a list.

Synopsis

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

Parameters

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

Description

Retrieve the data in the node preceding a given node in a list.

Returns

It returns NULL if there are no more nodes, else a pointer to the data.