Copies a specified number of bytes from one object to another.
Format
#include <string.h>
void *memcpy (void *dest, const void *source, size_t size);
1 – Function Variants
The memcpy function has variants named _memcpy32 and _memcpy64
for use with 32-bit and 64-bit pointer sizes, respectively.
2 – Arguments
dest
A pointer to the destination object.
source
A pointer to the source object.
size
The length of the object to be copied.
3 – Description
The memcpy function copies size bytes from the object pointed
to by source to the object pointed to by dest; it does not check
for the overflow of the receiving memory area (dest). Unlike the
strcpy function, the memcpy function does not stop when a null
character is encountered.
4 – Return Value
x The value of dest.