memcpy

Copies a memory block

#include <memory.h>
void *memcpy (
        void *dest,
        const void *src,
        size_t n
)

Arguments

dest Pointer to destination memory block
src Pointer to source memory block
n Number of bytes to copy

Return Value

dest, a pointer to the destination memory block is returned.

Explanation

The first n bytes of the memory block pointed to by src are copied to the memory block pointed to by dest.

See Also

bcopy()