aboutsummaryrefslogtreecommitdiffstats
path: root/man3/libsimple_mempcpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/libsimple_mempcpy.3')
-rw-r--r--man3/libsimple_mempcpy.313
1 files changed, 11 insertions, 2 deletions
diff --git a/man3/libsimple_mempcpy.3 b/man3/libsimple_mempcpy.3
index bf9e6bc..c23a041 100644
--- a/man3/libsimple_mempcpy.3
+++ b/man3/libsimple_mempcpy.3
@@ -1,11 +1,11 @@
-.TH LIBSIMPLE_MEMPCPY 3 2018-10-23 libsimple
+.TH LIBSIMPLE_MEMPCPY 3 2018-11-16 libsimple
.SH NAME
libsimple_mempcpy \- copy an array of bytes into another
.SH SYNOPSIS
.nf
#include <libsimple.h>
-static inline void *libsimple_mempcpy(void *\fIdest\fP, const void *\fIsrc\fP, size_t \fIn\fP);
+static inline void *libsimple_mempcpy(void *restrict \fIdest\fP, const void *restrict \fIsrc\fP, size_t \fIn\fP);
#ifndef mempcpy
# define mempcpy libsimple_mempcpy
@@ -23,6 +23,14 @@ bytes of
.I src
into
.IR dest .
+The first
+.I n
+bytes of
+.I dest
+must not overlap with the first
+.I n
+bytes of
+.IR src .
.SH RETURN VALUE
The
.BR libsimple_mempcpy ()
@@ -66,6 +74,7 @@ None.
.SH BUGS
None.
.SH SEE ALSO
+.BR libsimple_mempmove (3),
.BR libsimple_mempset (3),
.BR memcpy (3),
.BR stpncpy (3),