Table of Contents
Previous Section Next Section

memcpy

#include <string.h>void *memcpy(void *to, const void *from, size_t count);

The memcpy( ) function copies count characters from the array pointed to by from into the array pointed to by to. If the arrays overlap, the behavior of memcpy( ) is undefined.

In C99, to and from are qualified by restrict.

The memcpy( ) function returns a pointer to to.

A related function is memmove( ).


Table of Contents
Previous Section Next Section