2015-04-09 19:05:32 +00:00
|
|
|
.TH critbit0_clear 3
|
|
|
|
.SH NAME
|
|
|
|
critbit0_clear \- free all memory associated with a critbit tree
|
|
|
|
.SH SYNTAX
|
2017-05-13 22:51:26 +00:00
|
|
|
.B #include <libowfat/critbit.h>
|
2015-04-09 19:05:32 +00:00
|
|
|
|
|
|
|
critbit0_tree cb = { 0 };
|
|
|
|
|
|
|
|
void \fBcritbit0_clear\fP(critbit0_tree* \fIcb\fR);
|
|
|
|
.SH DESCRIPTION
|
|
|
|
critbit0_clear deletes all keys in \fIcb\fR and frees all memory
|
|
|
|
associated with it.
|
2015-04-10 20:57:54 +00:00
|
|
|
.SH "NOTE"
|
|
|
|
This function uses recursion to traverse the tree. It may require
|
|
|
|
nontrivial amounts of available stack space.
|
2015-04-09 19:05:32 +00:00
|
|
|
.SH "RETURN VALUE"
|
|
|
|
none.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
critbit0_delete(3)
|