1 @c Documentation of gnulib module 'c-strcasestr'.
3 @c Copyright (C) 2008-2017 Free Software Foundation, Inc.
5 @c Permission is granted to copy, distribute and/or modify this document
6 @c under the terms of the GNU Free Documentation License, Version 1.3 or
7 @c any later version published by the Free Software Foundation; with no
8 @c Invariant Sections, no Front-Cover Texts, and no Back-Cover
9 @c Texts. A copy of the license is included in the ``GNU Free
10 @c Documentation License'' file as part of this distribution.
12 The @code{c-strcasestr} module contains a case-insensitive string search
13 function operating on single-byte character strings, that operate as if the
14 locale encoding was ASCII.
15 (The "C" locale on many systems has the locale encoding "ASCII".)
19 extern char *c_strcasestr (const char *haystack, const char *needle);
22 For case conversion here, only ASCII characters are considered to be
23 upper case or lower case.
25 Note: The function @code{strcasestr} from @code{<string.h>} supports only
26 unibyte locales; for multibyte locales, you need the function