Next: , Previous: rbtree_min, Up: Public Routines


3.1.16 rbtree_min_node

Determine the node with the minimum data.

Synopsis

     #include <rbtree/rbtree.h>
     
     
     
RBNode rbtree_min_node(RBTree rbtree);

Parameters

RBTree rbtree
the tree to search

Description

This routine searches the tree for the node with the minimum data, as determined by the comparison routine with which the tree was created.

Returns

It returns a handle to the node if it exists, NULL if the tree is empty.