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.