summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcmp.3
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-10-11 17:02:44 +0000
committermike <mike@FreeBSD.org>2001-10-11 17:02:44 +0000
commit50430063cd01bcdd44d1182025865abf15bf2de7 (patch)
treec66f8adbe5b5d4c486096465954b32c759f34a5b /lib/libc/string/strcmp.3
parent988a5d401980b43471fd55a6c07dd624ad0334b3 (diff)
downloadFreeBSD-src-50430063cd01bcdd44d1182025865abf15bf2de7.zip
FreeBSD-src-50430063cd01bcdd44d1182025865abf15bf2de7.tar.gz
Note that strncmp() will not compare characters after a NUL character.
Add a missing word. Bump document date. Inspired by: IEEE Std 1003.1-200x (Draft 7) MFC after: 3 days
Diffstat (limited to 'lib/libc/string/strcmp.3')
-rw-r--r--lib/libc/string/strcmp.39
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/string/strcmp.3 b/lib/libc/string/strcmp.3
index 33db3c6..08adad0 100644
--- a/lib/libc/string/strcmp.3
+++ b/lib/libc/string/strcmp.3
@@ -36,7 +36,7 @@
.\" @(#)strcmp.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd October 11, 2001
.Dt STRCMP 3
.Os
.Sh NAME
@@ -64,9 +64,16 @@ and
.Pp
The
.Fn strncmp
+function
compares not more than
.Fa len
characters.
+Because
+.Fn strncmp
+is designed for comparing strings rather than binary data,
+characters that appear after a
+.Ql \e0
+character are not compared.
.Sh RETURN VALUES
The
.Fn strcmp
OpenPOWER on IntegriCloud