Go to the documentation of this file.
20 if (!key_type || !key_type->
cmp || !val_type)
A left-leaning red-black binary search tree.
void * ds_xcalloc(size_t count, size_t size)
Replicates behaviour of calloc from libc, but fails on memory allocation errors.
int(* cmp)(const void *, const void *)
(optional) A function ponter used to compare members of this data type
t_rbt * rbt_new(const t_type *key_type, const t_type *val_type)
Initializes a new empty tree.
A full representation of a data type, used to achieve polymorphism in the implementation of data stru...
const t_type * val_type
The type of values in the ree.
const t_type * key_type
The type of keys in the tree.
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.