Next: sll_insert_tail_node, Previous: sll_insert_node, Up: Singly Linked Lists
Create and insert a node at the tail of a singly linked list.
#include <linklist/linklist.h>int sll_insert_tail( SLinkList ull, void *data );
SLinkList ull
- a handle to the list into which to insert the node
void *data
- a pointer to the new node's data
This routine creates a node, inserts the passed data pointer in it, and attaches the node to the tail of the list.
It returns zero if the insert was successful, non-zero if it was unable to create the new node.