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

Go to the source code of this file.

Functions

void * rbt_get (const t_rbt *rbt, const void *key)
 Returns the value associated with a specified key. More...
 

Function Documentation

◆ rbt_get()

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

Returns the value associated with a specified key.

Parameters
keyThe key to search for
Returns
The value associated with the key, or NULL if the key is not in the tree.

Definition at line 16 of file rbt_get.c.