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

# critbit0\_delete(3)

delete a string from a critbit tree

## NAME

critbit0\_delete - delete a string from a critbit tree

## SYNTAX

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

critbit0\_tree cb = { 0 };

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

## DESCRIPTION

critbit0\_delete attempts to delete a string from a critbit0 tree. If *str* is in *cb*, critbit0\_delete removes it and returns 1. If *str* is not in *cb*, critbit0\_delete leaves it alone and returns 0.

## RETURN VALUE

1 if it was in cb and has now been removed, 0 if it was not in cb.

## SEE ALSO

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