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

Go to the source code of this file.

Functions

void * rbt_nth_recur (const t_rbt *rbt, const t_rbt_node *node, size_t n)
 
void * rbt_nth (const t_rbt *rbt, size_t n)
 Returns the key of the nth element in the tree. More...
 

Function Documentation

◆ rbt_nth()

void* rbt_nth ( const t_rbt rbt,
size_t  n 
)

Returns the key of the nth element in the tree.

Parameters
nThe index
Returns
The key of the nth element in the tree

Definition at line 30 of file rbt_nth.c.