diff options
author | robert <robert@FreeBSD.org> | 2002-08-30 15:40:01 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-08-30 15:40:01 +0000 |
commit | 3d9398c00e1ecd3146b989382ba55bba450f6b60 (patch) | |
tree | d27cfd2700229a42d77e9300869793928f4d92b9 /lib/libc | |
parent | fef65bd375893e5a42dba398102f13dad20ace02 (diff) | |
download | FreeBSD-src-3d9398c00e1ecd3146b989382ba55bba450f6b60.zip FreeBSD-src-3d9398c00e1ecd3146b989382ba55bba450f6b60.tar.gz |
- 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.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/strcasecmp.3 | 9 | ||||
-rw-r--r-- | lib/libc/string/strcasecmp.c | 2 |
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; |