1MEMCPY(P) POSIX Programmer's Manual MEMCPY(P)
2
3
4
6 memcpy - copy bytes in memory
7
9 #include <string.h>
10
11 void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
12
13
15 The memcpy() function shall copy n bytes from the object pointed to by
16 s2 into the object pointed to by s1. If copying takes place between
17 objects that overlap, the behavior is undefined.
18
20 The memcpy() function shall return s1; no return value is reserved to
21 indicate an error.
22
24 No errors are defined.
25
26 The following sections are informative.
27
29 None.
30
32 The memcpy() function does not check for the overflow of the receiving
33 memory area.
34
36 None.
37
39 None.
40
42 The Base Definitions volume of IEEE Std 1003.1-2001, <string.h>
43
45 Portions of this text are reprinted and reproduced in electronic form
46 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
47 -- Portable Operating System Interface (POSIX), The Open Group Base
48 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
49 Electrical and Electronics Engineers, Inc and The Open Group. In the
50 event of any discrepancy between this version and the original IEEE and
51 The Open Group Standard, the original IEEE and The Open Group Standard
52 is the referee document. The original Standard can be obtained online
53 at http://www.opengroup.org/unix/online.html .
54
55
56
57IEEE/The Open Group 2003 MEMCPY(P)