memmem3
Locate a byte substring in a byte string
Usage
#include <string.h>
void *
memmem(const void *big, size_t big_len, const void *little, size_t little_len);
Library
Standard C Library (libc, -lc)
Overview
The memmem() function locates the first occurrence of the byte string little in the byte string big.
Return values
If big_len is smaller than little_len, if little_len is 0, if big_len is 0 or if little occurs nowhere in big, NULL is returned; otherwise a pointer to the first character of the first occurrence of little is returned.
Releases
Unchanged in 97 releases since Mac OS X 10.7.