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

Go to the source code of this file.

Functions

void * rbt_ceil (const t_rbt *rbt, const void *key)
 Returns the smallest key greater than or equal to the specified key. More...
 

Function Documentation

◆ rbt_ceil()

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

Returns the smallest key greater than or equal to the specified key.

Parameters
keyThe key
Returns
The key greater than or equal to the specified key, or NULL, if the tree is empty.

Definition at line 33 of file rbt_ceil.c.