1MEMMOVE(P) POSIX Programmer's Manual MEMMOVE(P)
2
3
4
6 memmove - copy bytes in memory with overlapping areas
7
9 #include <string.h>
10
11 void *memmove(void *s1, const void *s2, size_t n);
12
13
15 The memmove() function shall copy n bytes from the object pointed to by
16 s2 into the object pointed to by s1. Copying takes place as if the n
17 bytes from the object pointed to by s2 are first copied into a tempo‐
18 rary array of n bytes that does not overlap the objects pointed to by
19 s1 and s2, and then the n bytes from the temporary array are copied
20 into the object pointed to by s1.
21
23 The memmove() function shall return s1; no return value is reserved to
24 indicate an error.
25
27 No errors are defined.
28
29 The following sections are informative.
30
32 None.
33
35 None.
36
38 None.
39
41 None.
42
44 The Base Definitions volume of IEEE Std 1003.1-2001, <string.h>
45
47 Portions of this text are reprinted and reproduced in electronic form
48 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
49 -- Portable Operating System Interface (POSIX), The Open Group Base
50 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
51 Electrical and Electronics Engineers, Inc and The Open Group. In the
52 event of any discrepancy between this version and the original IEEE and
53 The Open Group Standard, the original IEEE and The Open Group Standard
54 is the referee document. The original Standard can be obtained online
55 at http://www.opengroup.org/unix/online.html .
56
57
58
59IEEE/The Open Group 2003 MEMMOVE(P)