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/wmemcpy.3 | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/lib/libc/string/wmemcpy.3') diff --git a/src/lib/libc/string/wmemcpy.3 b/src/lib/libc/string/wmemcpy.3 index 9147bb7964..1102640ad4 100644 --- a/src/lib/libc/string/wmemcpy.3 +++ b/src/lib/libc/string/wmemcpy.3 @@ -1,3 +1,5 @@ +.\" $OpenBSD: wmemcpy.3,v 1.3 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: wmemcpy.3,v 1.2 2011/07/09 16:46:58 nicm Exp $ -.\" -.Dd $Mdocdate: July 9 2011 $ +.Dd $Mdocdate: July 25 2011 $ .Dt WMEMCPY 3 .Os .Sh NAME @@ -56,6 +56,7 @@ The function returns the original value of .Fa dst . .Sh SEE ALSO +.Xr memcpy 3 , .Xr wcscpy 3 , .Xr wcslcpy 3 , .Xr wmemmove 3 @@ -66,12 +67,19 @@ function conforms to .St -isoC-99 and was first introduced in .St -isoC-amd1 . -.Sh BUGS +.Sh HISTORY +The +.Fn wmemcpy +function was ported from +.Nx +and first appeared in +.Ox 3.8 . +.Sh CAVEATS In this implementation .Fn wmemcpy is implemented using .Xr bcopy 3 , and therefore the buffers may overlap. On other systems, copying overlapping buffers may produce surprises. -A simpler solution is to not use -.Fn wmemcpy . +A portable, safe solution is to use +.Xr wmemmove 3 . -- cgit v1.2.3-55-g6feb