Is there a version of strstr that works over a fixed length of memory that may include null characters?
I could phrase my question like this: strncpy is to memcpy as
Not in the standard library (which is not that large, so take a look). However writing your own is trivial, either directly byte by byte or using memchr() followed by memcmp() iteratively.