Name
memcpy function — Copies memory
Synopsis
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.
See Also
memmove function, strcpy function, strncpy function, copy
in <algorithm>
, wmemcpy
in <cwchar>
, Chapter 6
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.