mirror of https://github.com/mkerrisk/man-pages
strcasecmp.3: Clarify that strcasecmp() does a byte-wise comparison
Reported-0by: Jonny Grant <jg@jguk.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cad62ef6ab
commit
e20476d370
|
@ -41,7 +41,7 @@ strcasecmp, strncasecmp \- compare two strings ignoring case
|
|||
.SH DESCRIPTION
|
||||
The
|
||||
.BR strcasecmp ()
|
||||
function compares the two strings
|
||||
function performs a byte-by-byte comparison of the strings
|
||||
.I s1
|
||||
and
|
||||
.IR s2 ,
|
||||
|
@ -102,6 +102,17 @@ header file also declares these functions, if the
|
|||
(or, in glibc 2.19 and earlier,
|
||||
.BR _BSD_SOURCE )
|
||||
feature test macro is defined.
|
||||
|
||||
The POSIX.1-2008 standard says of these functions:
|
||||
|
||||
.RS
|
||||
When the
|
||||
.B LC_CTYPE
|
||||
category of the locale being used is from the POSIX locale,
|
||||
these functions shall behave as if the strings had been converted
|
||||
to lowercase and then a byte comparison performed.
|
||||
Otherwise, the results are unspecified.
|
||||
.RE
|
||||
.SH SEE ALSO
|
||||
.BR bcmp (3),
|
||||
.BR memcmp (3),
|
||||
|
|
Loading…
Reference in New Issue