Next: , Previous: rbtree_max_node, Up: Public Routines


3.1.15 rbtree_min

Determine the node with the minimum data.

Synopsis

     #include <rbtree/rbtree.h>
     
     
     
void *rbtree_min(RBTree rbtree);

Parameters

RBTree rbtree
the red-black tree to scan

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 the node's data pointer, NULL if the tree has no data.