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_bst * bst_new(const t_type *key_type, const t_type *val_type)
Initializes a new empty tree.
const t_type * val_type
The type of values in the ree.
const t_type * key_type
The type of keys in the tree.
A full representation of a data type, used to achieve polymorphism in the implementation of data stru...
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.