summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2002-01-07 06:03:37 +0000
committerDima Dorfman <dd@FreeBSD.org>2002-01-07 06:03:37 +0000
commitb06e8b97a9045139fca41abe5a10685ac2d1d62d (patch)
tree40be7b29895212e64ee19481cdb8bccd99e259c4
parentecfef947232fd5b3503ba2e1ff01ba08a217b6b5 (diff)
Notes
-rw-r--r--lib/libc/string/memcpy.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/string/memcpy.3 b/lib/libc/string/memcpy.3
index bc7d786a26af..c970d7ce7a0b 100644
--- a/lib/libc/string/memcpy.3
+++ b/lib/libc/string/memcpy.3
@@ -82,5 +82,10 @@ is implemented using
.Xr bcopy 3 ,
and therefore the strings may overlap.
On other systems, copying overlapping strings may produce surprises.
-A simpler solution is to not use
-.Fn memcpy .
+Programs intended to be portable should use
+.Xr memmove 3
+when
+.Fa src
+and
+.Fa dst
+may overlap.