DOKK / manpages / debian 11 / libowfat-dev / critbit0_clear.3.en
critbit0_clear(3) Library Functions Manual critbit0_clear(3)

critbit0_clear - free all memory associated with a critbit tree

#include <critbit.h>

critbit0_tree cb = { 0 };

void critbit0_clear(critbit0_tree* cb);

critbit0_clear deletes all keys in cb and frees all memory associated with it.

This function uses recursion to traverse the tree. It may require nontrivial amounts of available stack space.

none.

critbit0_delete(3)