Function bstree_data_query
Defined in File bstree.h
Function Documentation
-
void *bstree_data_query(const struct bstree *tree, const void *key)
Get the data associated with a key.
This function returns the data in the first node for which the compare function returned 0 for.
- Parameters:
tree – The BST handle
key – The key to search for
- Returns:
The data associated with the key, or NULL if no match for key was found