summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strcasecmp.39
-rw-r--r--lib/libc/string/strcasecmp.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3
index aac8ab7..05b3a48 100644
--- a/lib/libc/string/strcasecmp.3
+++ b/lib/libc/string/strcasecmp.3
@@ -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.
diff --git a/lib/libc/string/strcasecmp.c b/lib/libc/string/strcasecmp.c
index 830b8a5..cb031ce 100644
--- a/lib/libc/string/strcasecmp.c
+++ b/lib/libc/string/strcasecmp.c
@@ -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;
OpenPOWER on IntegriCloud