C Programming on the IBM PC (C Programmers Reference Guide Series)

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( ).

Категории