summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2003-05-06 09:58:25 +0000
committerlukem <lukem@NetBSD.org>2003-05-06 09:58:25 +0000
commit6800f4a2c3cb7ddb5c3115c5c0a3f217439ff774 (patch)
tree59ab2fa704318c99c329d0bb2d9836ade87891fe /lib/libc/string
parent033db35cb2044bc1ee854fa8e8f847bdc27b6003 (diff)
Clarify what strncpy() does when the length of `src' is `len'.
Noted by Christoph Kaegi on tech-userlevel@. Add missing "function".
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strcpy.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 39493f1f461..eac09909641 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -34,9 +34,9 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcpy.3,v 1.12 2003/04/16 13:34:49 wiz Exp $
+.\" $NetBSD: strcpy.3,v 1.13 2003/05/06 09:58:25 lukem Exp $
.\"
-.Dd August 11, 2002
+.Dd May 6, 2002
.Dt STRCPY 3
.Os
.Sh NAME
@@ -67,7 +67,7 @@ character).
.Pp
The
.Fn strncpy
-copies not more than
+function copies not more than
.Fa len
characters into
.Fa dst ,
@@ -83,9 +83,9 @@ terminating
.Fa dst
if
.Fa src
-is more than
+is
.Fa len
-characters long.
+or more characters long.
.Sh RETURN VALUES
The
.Fn strcpy