c-strtof, c-strtod, c-strtold: Make multithread-safe.
[gnulib.git] / doc / c-strcase.texi
blob7cb466a748a3a85ffef0d68cc94c1490e5eb4665
1 @c Documentation of gnulib module 'c-strcase'.
3 @c Copyright (C) 2008--2024 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 Texts.  A
9 @c copy of the license is at <https://www.gnu.org/licenses/fdl-1.3.en.html>.
11 The @code{c-strcase} module contains case-insensitive string comparison
12 functions operating on single-byte character strings, like the functions in
13 @code{<strings.h>}, that operate as if the locale encoding was ASCII.
14 (The "C" locale on many systems has the locale encoding "ASCII".)
16 The functions are:
17 @smallexample
18 extern int c_strcasecmp (const char *s1, const char *s2);
19 extern int c_strncasecmp (const char *s1, const char *s2, size_t n);
20 @end smallexample
22 For case conversion here, only ASCII characters are considered to be
23 upper case or lower case.
25 Note: The functions @code{strcasecmp}, @code{strncasecmp} from
26 @code{<strings.h>} support only unibyte locales; for multibyte locales,
27 you need the functions @code{mbscasecmp}, @code{mbsncasecmp},
28 @code{mbspcasecmp}.