std::memcpy

From Cppreference

Jump to: navigation, search
Defined in header <cstring>

void *memcpy( void *dest, const void *src, size_t count );

Copies count bytes from a memory location, pointed to by src to another location, pointed to by dest. If the memory regions 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

memmove
moves one buffer to another
(function)