I got a block of memory where I need to search for 2 consecutive chars.
I can't use strstr since my block of memory might contain '\0', and memchr only search for a single char. Is there some function similar to strstr, that works for non null-terminated, or should I use memchr followed by a manual check of the next element. Thanks.