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


3.1.18 sll_insert_tail_node

Insert a detached node at the tail of a list.

Synopsis

     #include <linklist/linklist.h>
     
     
     
int sll_insert_tail_node( SLinkList ull, SLLNode unode );

Parameters

SLinkList ull
a handle to the list into which to insert the node
SLLNode unode
the node to insert

Description

This routine inserts a node at the tail of a list. The node handle must have been obtained from sll_detach_node.

Returns

It returns non-zero if the node is NULL, zero otherwise.