From 98590d4f32d311e9117eecef511a19a1db44d2a0 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 23 Oct 2002 08:55:14 +0000 Subject: Translate to English. --- lib/libc/string/strcpy.3 | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'lib/libc/string') 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 -- cgit v1.1