Synopsis
char *strncasestr(const char *s1,
                  const char *s2,
                  size_t n);
Description

strncasestr searches at most n characters to locate the first occurrence in the string pointed to by s1 of the sequence of characters (excluding the terminating null character) in the string pointed to by s2 without regard to character case.

strncasestr returns a pointer to the located string, or a null pointer if the string is not found. If s2 points to a string with zero length, strncasestr returns s1.

Note

strncasestr is an extension commonly found in Linux and BSD C libraries.