summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-10-23 08:55:14 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-10-23 08:55:14 +0000
commit02edf2208d5120f89477e34814355e85a6e0a1df (patch)
treef272d6e5612d7e50c664b3a798519fdcd0795f13 /lib/libc/string
parent72c2159a5a2eb4e83502f1c6aa3aa6e671089f38 (diff)
Notes
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strcpy.331
1 files changed, 18 insertions, 13 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 5079ddd1ce19..01456d0ace8b 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -54,36 +54,41 @@
.Fn strncpy "char * restrict dst" "const char * restrict src" "size_t len"
.Sh DESCRIPTION
The
-.Fn stpcpy ,
+.Fn stpcpy
+and
.Fn strcpy
-function
-copies the string
+functions
+copy the string
.Fa src
to
.Fa dst
(including the terminating
.Ql \e0
-character).
+character.)
.Pp
The
.Fn strncpy
-function copies not more than
+function copies at most
.Fa len
characters from
.Fa src
into
-.Fa dst ,
-appending
-.Ql \e0
-characters if
+.Fa dst .
+If
.Fa src
is less than
.Fa len
-characters long, and
-.Em not
-terminating
+characters long,
+the remainder of
+.Fa dst
+is filled with
+.Ql \e0
+characters.
+Otherwise,
.Fa dst
-otherwise.
+is
+.Em not
+terminated.
.Sh RETURN VALUES
The
.Fn strcpy