RemHead()
function:
Node *RemHead( List *l )
l
argument is a pointer to the list from which you want to remove the node. The function returns a pointer to the node that was removed from the list or NULL if the list was empty.
RemTail()
function:
Node *RemTail( List *l )
l
argument is a pointer to the list from which you want to remove the node. The function returns a pointer to the node that was removed from the list or NULL if the list was empty.
RemNode()
function:
void RemNode( Node *n )
n
argument is a pointer to the node you want to remove. Because a node can be only in one list, the node is automatically removed from the correct list.