mirror of https://github.com/mkerrisk/man-pages
strcasecmp.3: Explain why strcasecmp()+strncasecmp() are also declared in <string.h>
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729436 Reported-by: Aurelien Jarno <aurelien@aurel32.net> Reported-by: Török Edwin <edwin@etorok.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7784c37d7c
commit
ca24d85041
|
@ -27,7 +27,7 @@
|
|||
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
|
||||
.\" 386BSD man pages
|
||||
.\" Modified Sat Jul 24 18:12:45 1993 by Rik Faith (faith@cs.unc.edu)
|
||||
.TH STRCASECMP 3 2012-05-10 "" "Linux Programmer's Manual"
|
||||
.TH STRCASECMP 3 2014-05-05 "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
strcasecmp, strncasecmp \- compare two strings ignoring case
|
||||
.SH SYNOPSIS
|
||||
|
@ -75,6 +75,20 @@ less than, to match, or be greater than
|
|||
.IR s2 .
|
||||
.SH CONFORMING TO
|
||||
4.4BSD, POSIX.1-2001.
|
||||
.SH NOTES
|
||||
The
|
||||
.BR strcasecmp ()
|
||||
and
|
||||
.BR strncasecmp ()
|
||||
functions first appeared in 4.4BSD, where they were declared in
|
||||
.IR <string.h> .
|
||||
Thus, for reasons of historical compatibility, the glibc
|
||||
.I <string.h>
|
||||
header file also declares these functions, if the
|
||||
.B _DEFAULT_SOURCE
|
||||
(or, in glibc 2.19 and earlier,
|
||||
.BR _BSD_SOURCE )
|
||||
feature test macro is defined.
|
||||
.SH SEE ALSO
|
||||
.BR bcmp (3),
|
||||
.BR memcmp (3),
|
||||
|
|
Loading…
Reference in New Issue