summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2001-10-11 17:02:44 +0000
committerMike Barcroft <mike@FreeBSD.org>2001-10-11 17:02:44 +0000
commit43e13bf58f993e1cf730f9506b5a78fbdf6f86e0 (patch)
treec66f8adbe5b5d4c486096465954b32c759f34a5b
parenta9227c40eb16696de3b96947b035df60b410eb9b (diff)
Notes
-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 33db3c66c8be..08adad0cac0b 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