scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1.TH memchr 3 scc\-VERSION
 2.SH NAME
 3memchr - search for a byte in a memory block
 4.SH SYNOPSIS
 5#include <string.h>
 6
 7void *memchr(const void *s, int c, size_t n)
 8.SH DESCRIPTION
 9The
10.BR memchr ()
11function scans the first
12.I n
13bytes of the memory block pointed to by
14.I s
15for the first occurrence of the byte value
16obtained by converting
17.I c
18to unsigned char.
19Each byte in the block is treated as unsigned char.
20.PP
21When
22.I n
23is zero, the search is not performed.
24.SH RETURN VALUE
25The
26.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 STANDARDS
30ISO/IEC 9899:1999 Section 7.21.5.1