Reference

strcasestr(3)

string case-insensitive search substring

NAME

strcasestr - 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).

InterfaceAttributeValue
strcasestr()Thread safetyMT-Safe locale

STANDARDS

GNU.

HISTORY

GNU.

SEE ALSO

string(3), strstr(3)

History