Function LinkedList.LinkedListHead.addNodeTail

addNodeTail -- insert node at the head of a list

void addNodeTail (
  ref LinkedList.LinkedListNode node
);

Add a node to the tail of a doubly linked list. So our node is linked after the last existing node or the HEAD node, and in front of the TAIL node. There is always a HEAD node.

this - a pointer to the target list header

Parameters

NameDescription
node the node to insert

Returns

Your list is larger by one node and your node is added at tail of list.

Example

ListHead myList; ListNode* myNode; ... myList.addNodeTail(myNode );

Notes

This function does not arbitrate for access to the list. The calling task must be the owner of the involved list.

Bugs

none

See

initListHead(), addNode(), remNode(), addNodeHead(), remNodeHead(), addNodeTail(), remNodeTail(), addNodeSorted(), findNode()