memchr
Syntax
#include
<string.h>
void
*memchrCs,
c,
n)
void
*s;
char
c i
size-t
ni
Find
First
Occurrence
of
Byte
Defined
in
rnernchr.
c in
rts.
src
Description
The memchr function finds the first occurrence
of
c in the first n characters
of
the object that s points to.
If
the character
is
found, memchr returns a
pointer
to
the located character; otherwise, it returns a null pointer
(0).
6-50
The memchr function
is
similar
to
strchr, except the object that memchr
searches can contain values
of
0, and c can be
O.