---
name: "str_chr"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/str_chr/3diet"
---

# str\_chr(3diet)

find character in ASCIIZ string

## NAME

str\_chr - find character in ASCIIZ string

## SYNTAX

**#include \<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)
