strchr
Syntax
Description
6-16
.
FindCharacterinString-FirstOccurrence
#inclu~e
<string.h>
unsigned char *strchr(s,c)
unsigned char *s,c;
strchr
This function finds the firSt occurrence
of
the character c in the string.s
and
returns a pointer
to
it.
If
the character
is
not found, strchr returns a null.
strchr
is
equivalent
to
other C compilers' index.