3 <<memchr>>---find character in memory
10 void *memchr(const void *<[src]>, int <[c]>, size_t <[length]>);
14 void *memchr(<[src]>, <[c]>, <[length]>)
20 This function searches memory starting at <<*<[src]>>> for the
21 character <[c]>. The search only ends with the first
22 occurrence of <[c]>, or after <[length]> characters; in
23 particular, <<NULL>> does not terminate the search.
26 If the character <[c]> is found within <[length]> characters
27 of <<*<[src]>>>, a pointer to the character is returned. If
28 <[c]> is not found, then <<NULL>> is returned.
31 <<memchr>> requires no supporting OS subroutines.
42 #define size_t unsigned long
46 memchr (src_void, c, length)
47 register const PTR src_void;
51 const unsigned char *src = (const unsigned char *)src_void;