Next: rbtree_min, Previous: rbtree_max, Up: Public Routines
Determine the node with the maximum data.
#include <rbtree/rbtree.h>RBNode rbtree_max_node(RBTree rbtree);
RBTree rbtree
- the tree to search
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 a handle to the node if it exists, NULL
if the
tree is empty.