- 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:
Robert Drehmel 2002-08-30 15:40:01 +00:00
parent 401e7fff61
commit c271a3613c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102624
2 changed files with 9 additions and 2 deletions

View file

@ -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.

View file

@ -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;