Namespaces
Variants
Views
Actions

memcpy

From cppreference.com
< c | string | byte
Defined in header <string.h>
void* memcpy( void* dest, const void* src, size_t count );

Copies count characters from the object pointed to by src to the object pointed to by dest. If the objects overlap, the behavior is undefined.

Contents

[edit] Parameters

dest - pointer to the memory location to copy to
src - pointer to the memory location to copy from
count - number of bytes to copy

[edit] Return value

dest

[edit] Example

[edit] See also

moves one buffer to another
(function) [edit]