memchr - find byte in memory
#include <string.h> void *memchr(const void *s, int c, size_t n);
The memchr() function locates the first occurrence of c (converted to an unsigned char) in the initial n bytes (each interpreted as unsigned char) of the object pointed to by s.
The memchr() function returns a pointer to the located byte, or a null pointer if the byte does not occur in the object.
No errors are defined.
None.
None.
None.
<string.h>.
Derived from Issue 1 of the SVID.