Routine Required Header
memcpy <memory.h> or <string.h>
void *memcpy( void *dest, const void *src, size_t count );
Parameters
dest
New buffer
src
Buffer to copy from
count
Number of characters to copy
Libraries
All versions of the C run-time libraries.
Return Values
memcpy returns the value of dest.
Remarks
The memcpy function copies count bytes of src to dest. If the source and destination overlap, this function does not ensure that the original source bytes in the overlapping region are copied before being overwritten. Use memmove to handle overlapping regions.