DOKK / manpages / debian 12 / libowfat-dev / critbit0_contains.3.en
critbit0_contains(3) Library Functions Manual critbit0_contains(3)

critbit0_contains - check whether a string is in the critbit tree

#include <libowfat/critbit.h>

critbit0_tree cb = { 0 };

int critbit0_contains(critbit0_tree* cb,const char* str);

critbit0_contains looks up the given string in the critbit0 tree. If str is in cb, critbit0_contains returns 1. Otherwise it returns 0.

1 if the key was found, 0 otherwise.

critbit0_insert(3)