critbit0_clear(3)
πΈ NAME πΈ
okay so critbit0_clear(3) is the main character here, and this whole page is from the Library Functions Manual, bestie. What does she do? She frees all memory associated with a critbit tree. That's the whole job. Cleanup queen. π
critbit0_clear β free all memory associated with a critbit tree.
β¨ SYNTAX β¨
here's the exact incantation, no cap:
#include <libowfat/critbit.h>
critbit0_tree cb = { 0 };
void critbit0_clear(critbit0_tree* cb);
π DESCRIPTION π
critbit0_clear deletes all keys in cb and frees all memory associated with it. Like, every key in that tree? Gone. Every byte tied to it? Released. It's giving full reset, empty-the-group-chat, leave-no-crumbs energy. π§Ήβ¨
β οΈ NOTE β οΈ
heads up, bestie β this function uses recursion to traverse the tree. That means it may require nontrivial amounts of available stack space. If your stack is not stacked, that's lowkey a problem. Be mindful. π
π RETURN VALUE π
none.
That's it. No return value, no secret little integer, no bonus data. It returns nothing, periodt. π«Ά
π SEE ALSO π
critbit0_delete(3)β your other critbit cleanup bestie, go say hi. π
that's the whole page, bestie β critbit0_clear(3) from the Library Functions Manual. The footer is just critbit0_clear(3) again, no version or date energy dropped in, so consider this your cute sign-off. πβ¨π¦
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms