---
name: "critbit0_contains"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/critbit0_contains"
---

# critbit0\_contains(3)

check whether a string is in the critbit tree

## NAME

critbit0\_contains - check whether a string is in the critbit tree

## SYNTAX

**#include \<libowfat/critbit.h\>**

critbit0\_tree cb = { 0 };

int **critbit0\_contains**(critbit0\_tree\* *cb*,const char\* *str*);

## DESCRIPTION

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

## RETURN VALUE

1 if the key was found, 0 otherwise.

## SEE ALSO

[critbit0\_insert(3)](/critbit0_insert/3.md)
