Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/string Note explicitly that memcpy does not guarant...



details:   https://anonhg.NetBSD.org/src/rev/71d600f75ee1
branches:  trunk
changeset: 512155:71d600f75ee1
user:      perry <perry%NetBSD.org@localhost>
date:      Sat Jul 07 04:53:52 2001 +0000

description:
Note explicitly that memcpy does not guarantee good behavior on overlap.

diffstat:

 lib/libc/string/memcpy.3 |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 6ecc3fa63c58 -r 71d600f75ee1 lib/libc/string/memcpy.3
--- a/lib/libc/string/memcpy.3  Sat Jul 07 04:14:43 2001 +0000
+++ b/lib/libc/string/memcpy.3  Sat Jul 07 04:53:52 2001 +0000
@@ -34,7 +34,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)memcpy.3     8.1 (Berkeley) 6/4/93
-.\"    $NetBSD: memcpy.3,v 1.7 2001/07/06 15:11:18 tv Exp $
+.\"    $NetBSD: memcpy.3,v 1.8 2001/07/07 04:53:52 perry Exp $
 .\"
 .Dd June 4, 1993
 .Dt MEMCPY 3
@@ -58,6 +58,9 @@
 .Fa src
 to string
 .Fa dst .
+The arguments must not overlap -- behavior if the arguments overlap is
+undefined. To copy byte strings that overlap, use
+.Xr memmove 3 .
 .Sh RETURN VALUES
 The
 .Fn memcpy



Home | Main Index | Thread Index | Old Index