summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memcpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/memcpy.3')
-rw-r--r--src/lib/libc/string/memcpy.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/string/memcpy.3 b/src/lib/libc/string/memcpy.3
index 7e9e5e4cf1..c8265d94a6 100644
--- a/src/lib/libc/string/memcpy.3
+++ b/src/lib/libc/string/memcpy.3
@@ -29,14 +29,14 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: memcpy.3,v 1.5 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: memcpy.3,v 1.6 2003/06/21 12:04:01 avsm Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt MEMCPY 3 35.Dt MEMCPY 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
38.Nm memcpy 38.Nm memcpy
39.Nd copy byte string 39.Nd copy bytes
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.Fd #include <string.h> 41.Fd #include <string.h>
42.Ft void * 42.Ft void *
@@ -46,9 +46,9 @@ The
46.Fn memcpy 46.Fn memcpy
47function copies 47function copies
48.Fa len 48.Fa len
49bytes from string 49bytes from buffer
50.Fa src 50.Fa src
51to string 51to buffer
52.Fa dst . 52.Fa dst .
53.Sh RETURN VALUES 53.Sh RETURN VALUES
54The 54The
@@ -71,7 +71,7 @@ In this implementation
71.Fn memcpy 71.Fn memcpy
72is implemented using 72is implemented using
73.Xr bcopy 3 , 73.Xr bcopy 3 ,
74and therefore the strings may overlap. 74and therefore the buffers may overlap.
75On other systems, copying overlapping strings may produce surprises. 75On other systems, copying overlapping buffers may produce surprises.
76A simpler solution is to not use 76A simpler solution is to not use
77.Fn memcpy . 77.Fn memcpy .