Next: rbtree_min_node, Previous: rbtree_max_node, Up: Public Routines
Determine the node with the minimum data.
#include <rbtree/rbtree.h>void *rbtree_min(RBTree rbtree);
RBTree rbtree
- the red-black tree to scan
This routine searches the tree for the node with the minimum 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.