memcpy function — Copies memory
void* memcpy(void* dst, const void* src, size_t n)
The memcpy
function copies
n
bytes from src
to dst
. If src
and dst
overlap, the results are undefined.
The return value is dst
.
If you copy the memory that contains any non-POD objects, the results are undefined. See Chapter 6 for more information about POD objects.
memmove function, strcpy function, strncpy function, copy
in <algorithm>
, wmemcpy
in <cwchar>
, Chapter 6