1critbit0_delete(3) Library Functions Manual critbit0_delete(3)
2
3
4
6 critbit0_delete - delete a string from a critbit tree
7
9 #include <critbit.h>
10
11 critbit0_tree cb = { 0 };
12
13 int critbit0_delete(critbit0_tree* cb,const char* str);
14
16 critbit0_delete attempts to delete a string from a critbit0 tree. If
17 str is in cb, critbit0_delete removes it and returns 1. If str is not
18 in cb, critbit0_delete leaves it alone and returns 0.
19
21 1 if it was in cb and has now been removed, 0 if it was not in cb.
22
24 critbit0_insert(3)
25
26
27
28 critbit0_delete(3)