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

# str\_chr(3)

find character in ASCIIZ string

## NAME

str\_chr - find character in ASCIIZ string

## SYNTAX

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

size\_t **str\_chr**(const char\* *haystack*,char *needle*);

## DESCRIPTION

str\_chr returns the index of the first occurrance of *needle* or \\0 in *string*.

## SEE ALSO

[strchr(3)](/strchr/3.md)
