Next: rbtree_max_node, Previous: rbtree_join, Up: Public Routines
Determine the node with the maximum data.
#include <rbtree/rbtree.h>void *rbtree_max(RBTree rbtree);
RBTree rbtree
- the red-black tree to scan
This routine searches the tree for the node with the maximum data, as determined by the comparison routine with which the tree was created.
It returns the node's data pointer, NULL
if the tree has no data.