memcpy() — Copy buffer

Format

#include <string.h>

void *memcpy(void * __restrict__dest, const void * __restrict__src, size_t count);

General description

The memcpy() built-in function copies count bytes from the object pointed to by src to the object pointed to by dest. For memcpy(), the source characters may be overlaid if copying takes place between objects that overlap. Use the memmove() function to allow copying between objects that overlap.

Returned value

The memcpy() function returns the value of dest.

Related Information