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


3.2.21 dll_next

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

Synopsis

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

Parameters

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

Description

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

Returns

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