1.TH memchr 3 scc\-VERSION2.SH NAME3memchr - search for a byte in a memory block4.SH SYNOPSIS5#include <string.h>67void *memchr(const void *s, int c, size_t n)8.SH DESCRIPTION9The10.BR memchr ()11function scans the first12.I n13bytes of the memory block pointed to by14.I s15for the first occurrence of the byte value16obtained by converting17.I c18to unsigned char.19Each byte in the block is treated as unsigned char.20.PP21When22.I n23is zero, the search is not performed.24.SH RETURN VALUE25The26.BR memchr ()27function returns a pointer to the first matching byte,28or a null pointer if the byte is not found within the block.29.SH STANDARDS30ISO/IEC 9899:1999 Section 7.21.5.1