Just a nice snippet of code I found useful;
It gets the position of the needle in the haystack using
(who came up
with that name, seriously), then, as 1
strstr
returns a pointer to the
needle’s occurance in the string, we simply make sure that if it ain’t null,
and that it’s equal to the original string.1
strstr
Day to day C stuff, I guess.