memcpy

Copies a memory block.

void * memcpy (void * dest, void * source, size_t length);

Required Header
<string.h>

Return Value

This function returns a pointer to the destination memory block.

Parameters

dest

  The destination memory block

source

  The source memory block

length

  The length of the memory blocks

Remarks

The memcpy function copies length bytes from source to dest.

String

See Also    bcopy, memccpy, memchr, memcmp, _memicmp, memmove, memset, strcpy, strncpy