Docs » Autodocs » exec.library » AVL_RemNodeByKey
AVL_RemNodeByKey -- Remove a node identified by its key (V45)
result = AVL_RemNodeByKey( root, key, func ) D0 A0 A1 A2 struct AVLNode *AVL_RemNodeByKey(struct AVLNode **, AVLKey, AVLKEYCOMP);
The function will search for the node with the given key and remove it from the tree. Note that there is no arbitration for access to the tree. You should use a SignalSemaphore if arbitration is required.
root - Address of(!) the root pointer(!) of the AVL tree key - An abstract key to match a node by the given compare function func - The compare function to check if a struct AVLNode matches the given key
A pointer to the removed node or NULL if the node could not be found.
AVL_FindLastNode(), AVL_FindNode(), AVL_FindFirstNode(), AVL_RemNodeByAddress(), AVL_AddNode()
|