1MEMMOVE(3) Linux Programmer's Manual MEMMOVE(3)
2
3
4
6 memmove - copy memory area
7
9 #include <string.h>
10
11 void *memmove(void *dest, const void *src, size_t n);
12
14 The memmove() function copies n bytes from memory area src to memory
15 area dest. The memory areas may overlap: copying takes place as though
16 the bytes in src are first copied into a temporary array that does not
17 overlap src or dest, and the bytes are then copied from the temporary
18 array to dest.
19
21 The memmove() function returns a pointer to dest.
22
24 For an explanation of the terms used in this section, see at‐
25 tributes(7).
26
27 ┌──────────┬───────────────┬─────────┐
28 │Interface │ Attribute │ Value │
29 ├──────────┼───────────────┼─────────┤
30 │memmove() │ Thread safety │ MT-Safe │
31 └──────────┴───────────────┴─────────┘
33 POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
34
36 bcopy(3), bstring(3), memccpy(3), memcpy(3), strcpy(3), strncpy(3),
37 wmemmove(3)
38
40 This page is part of release 5.10 of the Linux man-pages project. A
41 description of the project, information about reporting bugs, and the
42 latest version of this page, can be found at
43 https://www.kernel.org/doc/man-pages/.
44
45
46
47GNU 2017-03-13 MEMMOVE(3)