MEMCPY(3) | Library Functions Manual | MEMCPY(3) |
memcpy
— copy
memory area
Standard C Library (libc, -lc)
#include
<string.h>
void *
memcpy
(void *restrict dst,
const void *restrict src, size_t
n);
The
memcpy
()
function copies n bytes from memory area
src to memory area dst. If
dst and src overlap, behavior is
undefined. Applications in which dst and
src might overlap should use
memmove(3) instead.
The memcpy
() function returns the original
value of dst.
The memcpy
() function conforms to
ISO/IEC 9899:1990
(“ISO C90”).
June 4, 1993 | macOS 15.0 |