summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-10-23 08:55:14 +0000
committerdes <des@FreeBSD.org>2002-10-23 08:55:14 +0000
commit98590d4f32d311e9117eecef511a19a1db44d2a0 (patch)
treef272d6e5612d7e50c664b3a798519fdcd0795f13 /lib/libc
parent4c59c987d84f77190fa48fa3e83a6136d19de44a (diff)
downloadFreeBSD-src-98590d4f32d311e9117eecef511a19a1db44d2a0.zip
FreeBSD-src-98590d4f32d311e9117eecef511a19a1db44d2a0.tar.gz
Translate to English.
Diffstat (limited to 'lib/libc')
-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 5079ddd..01456d0 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
OpenPOWER on IntegriCloud