---------- Add the following new section for memmem(): --------- NAME memmem - find a byte substring in a byte string SYNOPSIS [CX] #include void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen); [/CX] DESCRIPTION The memmem() function shall locate the first occurrence of byte string 'needle' of length 'needlelen' in byte string 'haystack' of length 'haystacklen'. RETURN VALUE Upon successful completion, memmem() shall return a pointer to the the first byte of the located byte string in 'haystack', or a null pointer if the byte string is not found. If 'needlelen' is zero, the function shall return 'haystack'. If 'haystacklen' is less than 'needlelen', the function shall return a null pointer. ERRORS No errors are defined. --- The following sections are informative. -- EXAMPLES None. APPLICATION USAGE None. RATIONALE This function is identical to strstr(), except that it doesn't require that strings have a terminating NUL character. FUTURE DIRECTIONS None. SEE ALSO memchr, strstr XBD CHANGE HISTORY First released in Issue 8. --- End of informative text. --- ---------- Add the following function prototype to : --------- [CX] void *memmem(const void *, size_t, const void *, size_t); [/CX] ---------- Add the following to strstr(): --------- SEE ALSO memmem()