Find First Occurrence of Character
Syntax
#include
<string.h>
char *strchr(s, c)
char *s;
char c;
Defined in
strchr . c in rts. src
strchr
Description
The strchr function finds the first occurrence of c (which is first converted
to a char) in s.
If strchr finds the character, it returns a pointer to the
character; otherwise, it returns a null pointer (0).
6-67