Docs » Autodocs » exec.library » AVL_FindNextNodeByKey
AVL_FindNextNodeByKey -- Find node identified by a key (V45)
result = AVL_FindNextNodeByKey( root, key, func ) D0 A0 A1 A2 struct AVLNode *AVL_FindNextNodeByKey(const struct AVLNode *, AVLKey, AVLKEYCOMP);
The function will search for a node or the next higher node based on the key given 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 with the given key or the next higher node if no exact match was found.
AVL_FindLastNode(), AVL_FindFirstNode(), AVL_AddNode(), AVL_RemNodeByAddress(), AVL_FindNextNodeByAddress()
|