From 339c056f856313e215baab8ddc4bc0ce064b4571 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 25 Jul 2011 00:38:53 +0000 Subject: update HISTORY and SEE ALSO for all of string(3), together with various smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree --- src/lib/libc/string/strcpy.3 | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/lib/libc/string/strcpy.3') diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index 428e474d43..400eeee622 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.3 @@ -1,3 +1,5 @@ +.\" $OpenBSD: strcpy.3,v 1.16 2011/07/25 00:38:53 schwarze Exp $ +.\" .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -29,9 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: strcpy.3,v 1.15 2007/05/31 19:19:32 jmc Exp $ -.\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 25 2011 $ .Dt STRCPY 3 .Os .Sh NAME @@ -57,8 +57,9 @@ to .Ql \e0 character). .Pp +The .Fn strncpy -copies not more than +function copies not more than .Fa len characters into .Fa dst , @@ -141,7 +142,10 @@ is simply: .Xr memccpy 3 , .Xr memcpy 3 , .Xr memmove 3 , -.Xr strlcpy 3 +.Xr strcat 3 , +.Xr strlcpy 3 , +.Xr wcscpy 3 , +.Xr wcslcpy 3 .Sh STANDARDS The .Fn strcpy @@ -149,3 +153,10 @@ and .Fn strncpy functions conform to .St -ansiC . +.Sh HISTORY +The +.Fn strcpy +and +.Fn strncpy +functions first appeared in +.At v7 . -- cgit v1.2.3-55-g6feb