Docs » Autodocs » exec.library » AVL_FindNode
AVL_FindNode -- Find a node identified by its key (V45)
result = AVL_FindNode( root, key, func ) D0 A0 A1 A2 struct AVLNode *AVL_FindNode(const struct AVLNode *, AVLKey, AVLKEYCOMP);
The function will search for the node with the given key and return a pointer to it. Note that the compare function works like strcmp() by returning <0, 0, >0 results to define a less/equal/greater relationship.
root - pointer to the root 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 node or NULL if the node could not be found.
AVL_FindLastNode(), AVL_FindFirstNode(), AVL_AddNode(), AVL_RemNodeByAddress()
|