1MEMCHR(9) Basic C Library Functions MEMCHR(9)
23
4
NAME
6memchr - Find a character in an area of memory.
7
SYNOPSIS
9void * memchr(const void * s, int c, size_t n);
10
ARGUMENTS
12s
13The memory area
1415
c
16The byte to search for
1718
n
19The size of the area.
20
DESCRIPTION
22returns the address of the first occurrence of c, or NULL if c is not
23found
24
COPYRIGHT
26Kernel Hackers Manual 3.10 June 2019 MEMCHR(9)