Next: , Previous: sll_new, Up: Singly Linked Lists


3.1.21 sll_next

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

Synopsis

     #include <linklist/linklist.h>
     
     
     
void *sll_next( SLinkList ull, SLLNode unode );

Parameters

SLinkList ull
the list which contains the node
SLLNode 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.