static const char *strcasestr (const char *haystack, const char *needle)
{
int haypos;
int needlepos;

haypos = 0;
while (haystack[haypos]) {
if (tolower (haystack[haypos]) == tolower(needle[0])) {
needlepos = 1;
while ( (needle[needlepos]) &&
(tolower(haystack[haypos + needlepos])
== tolower(needle[needlepos])) )
++needlepos;
if (! needle[needlepos]) return (haystack + haypos);
}
++haypos;
}
return NULL;
}



どっかのヘッダーに入っているみたい.

入っていない場合もあるみたい.