memmem3
Locate a byte subsequence in a byte sequence
Usage
#include <string.h>
QVoid *
memmem(QVoid *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 sequence little in the byte sequence big.
Return values
If little_len is zero big is returned (that is, an empty little is deemed to match at the beginning of big); 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
49 releases since FreeBSD 6.0-RELEASE; the text changed 36 times.