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

# str\_rchr(3diet)

find character in ASCIIZ string

## NAME

str\_rchr - find character in ASCIIZ string

## SYNTAX

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

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

## DESCRIPTION

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

## SEE ALSO

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