- Update strcasecmp(3)/strncasecmp(3) to reflect the fact that
the prototypes for both functions are now in the <strings.h> header, as required by IEEE Std 1003.1-2001. - Add one sentence about that in the HISTORY section. - Include <strings.h> in the source file to have the prototypes in scope when the _ANSI_SOURCE macro is defined.
This commit is contained in:
parent
401e7fff61
commit
c271a3613c
@ -44,7 +44,7 @@
|
||||
.Sh LIBRARY
|
||||
.Lb libc
|
||||
.Sh SYNOPSIS
|
||||
.In string.h
|
||||
.In strings.h
|
||||
.Ft int
|
||||
.Fn strcasecmp "const char *s1" "const char *s2"
|
||||
.Ft int
|
||||
@ -95,3 +95,10 @@ and
|
||||
.Fn strncasecmp
|
||||
functions first appeared in
|
||||
.Bx 4.4 .
|
||||
Their prototypes existed previously in
|
||||
.Aq Pa string.h
|
||||
before they were moved to
|
||||
.Aq Pa strings.h
|
||||
for
|
||||
.St -p1003.1-2001
|
||||
compliance.
|
||||
|
@ -37,7 +37,7 @@ static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
|
||||
typedef unsigned char u_char;
|
||||
|
Loading…
x
Reference in New Issue
Block a user