strnstrn — Find a binary substring within a binary string
const char * **strnstrn** ( | needle, | |
| | needle_len, | |
| | haystack, | |
| | haystack_len
); | |
Find a binary substring within a binary string.
Search for needle in haystack.
NUL characters in the strings are ignored; only the lengths are respected.
The string to find.
The length of the needle.
The string to search.
The length of the haystack.
Returns a pointer to the first instance of needle found in haystack.
It is legal to call this function in the