data_structures
Functions
rbt_floor.c File Reference
#include "rbt.h"
+ Include dependency graph for rbt_floor.c:

Go to the source code of this file.

Functions

void * rbt_floor (const t_rbt *rbt, const void *key)
 Returns the largest key less than or equal to the specified key. More...
 

Function Documentation

◆ rbt_floor()

void* rbt_floor ( const t_rbt rbt,
const void *  key 
)

Returns the largest key less than or equal to the specified key.

Parameters
keyThe key
Returns
The smallest key in the tree, or NULL, if the tree is empty.

Definition at line 33 of file rbt_floor.c.