Skip to content

str_chr.3

Manvendra Bhangui edited this page May 7, 2023 · 2 revisions

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)

Clone this wiki locally