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

Go to the source code of this file.

Functions

void rbt_put (t_rbt *rbt, const void *key, const void *val)
 Adds a new item to the tree or overwrites an existing one. More...
 

Function Documentation

◆ rbt_put()

void rbt_put ( t_rbt rbt,
const void *  key,
const void *  val 
)

Adds a new item to the tree or overwrites an existing one.

Parameters
keyThe key to be copied
valThe value to be copied

Definition at line 45 of file rbt_put.c.