Table of Contentsmemmem - locate a substring #include <string.h>
void *memmem(const void *needle, size_t needlelen, const void *haystack, size_t haystacklen);
The memmem() function finds the first occurrence of the substring needle of length needlelen in the memory area haystack of length haystacklen. The memmem() function returns a pointer to the beginning of the substring, or NULL if the substring is not found. strstr(3)
Table of Contents
www.fiveanddime.net