aboutsummaryrefslogtreecommitdiffstats
path: root/man3/libsimple_mempcpy.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-16 20:45:56 +0100
committerMattias Andrée <maandree@kth.se>2018-11-16 20:45:56 +0100
commiteb3ac9af10990de4dfda5495831ca8e34a44a958 (patch)
tree58c82478e483aa56e1888126ea3add35581914f5 /man3/libsimple_mempcpy.3
parentmemisutf8: string can be NULL (if n is 0) (diff)
downloadlibsimple-eb3ac9af10990de4dfda5495831ca8e34a44a958.tar.gz
libsimple-eb3ac9af10990de4dfda5495831ca8e34a44a958.tar.bz2
libsimple-eb3ac9af10990de4dfda5495831ca8e34a44a958.tar.xz
Add mempmove
Signed-off-by: Mattias Andrée <maandree@kth.se>
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),