strcasestr - Man Page
string case-insensitive search substring
Library
Standard C library (libc, -lc)
Synopsis
#define _GNU_SOURCE // See feature_test_macros(7) #include <string.h> char *strcasestr(const char *haystack, const char *needle);
Description
strcasestr() is like strstr(), but ignores the case of both arguments.
Return Value
See strstr(3).
Attributes
For an explanation of the terms used in this section, see attributes(7).
| Interface | Attribute | Value |
|---|---|---|
| strcasestr() | Thread safety | MT-Safe locale |
Standards
GNU.
History
GNU.
See Also
Info
2026-05-16 Linux man-pages 6.20