STRSTR(3) BSD Library Functions Manual STRSTR(3)
NAME
strcasestr, strcasestr_l, strnstr, strstr -- locate a substring in a string
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <string.h>
char *
strcasestr(const char *s1, const char *s2);
char *
strnstr(const char *s1, const char *s2, size_t n);
char *
strstr(const char *s1, const char *s2);
#include <string.h>
#include <xlocale.h>
char *
strcasestr_l(const char *s1, const char *s2, locale_t loc);
DESCRIPTION
The strstr() function locates the first occurrence of the null-terminated string s2 in the null-terminated string s1.
The strcasestr() function is similar to strstr(), but ignores the case of both strings.
The strnstr() function locates the first occurrence of the null-terminated string s2 in the string s1, where not more than n characters are
searched. Characters that appear after a '