3 @deftypefn Supplemental void* memchr (const void *@var{s}, int @var{c}, size_t @var{n})
5 This function searches memory starting at @code{*@var{s}} for the
6 character @var{c}. The search only ends with the first occurrence of
7 @var{c}, or after @var{length} characters; in particular, a null
8 character does not terminate the search. If the character @var{c} is
9 found within @var{length} characters of @code{*@var{s}}, a pointer
10 to the character is returned. If @var{c} is not found, then @code{NULL} is
18 #ifdef ANSI_PROTOTYPES
21 #define size_t unsigned long
25 memchr (src_void, c, length)
26 register const PTR src_void;
30 const unsigned char *src = (const unsigned char *)src_void;