NAME memmem - locate a byte substring in a byte string CONTENTS Library Synopsis Description Return Values See Also Conforming To History Author Bugs LIBRARY .Lb libc SYNOPSIS .In string.h void * memmem "const char *big" "size_t big_len" "const char *little" "size_t little_len" DESCRIPTION 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. SEE ALSO memchr(3), strchr(3), strstr(3) CONFORMING TO HISTORY AUTHOR BUGS