memchr3
Locate byte in byte string
Usage
#include <string.h>
void *
memchr(const void *s, int c, size_t n);
Library
Standard C Library (libc, -lc)
Overview
The memchr() function locates the first occurrence of c (converted to an unsigned char) in string s.
Return values
The memchr() function returns a pointer to the byte located, or NULL if no such byte exists within n bytes.
Releases
163 releases since Mac OS X 10.0; the text changed 3 times.