next up previous contents
Next: getNode Up: General functions Previous: freeHL_CompoundTypeDescription

addNode

int addNode (HL_NodeList* nodelist, HL_Node* node)

Appends a node to (the end of) a node list.

Note: If this operation is successful the responsibility for releasing the memory of the node node is taken by the nodelist, so do not release the node afterwards.

Arguments:

nodelist: The node list.

node: The node to append to nodelist.

Returns 1 if successful and 0 otherwise.




2000-08-08