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


3.1.24 sll_node_put_data

Replace the data pointer in a given node with another.

Synopsis

     #include <linklist/linklist.h>
     
     
     
void sll_node_put_data( SLLNode unode, void *data );

Parameters

SLLNode unode
the node in question
void *data
the new data

Description

This function allows the calling routine to change the data that a node points to. No check is made to insure that any existing ordering of the data is maintained.