memcpy

Copies a specified number of bytes from one object to another.

Format

#include  <string.h>

void *memcpy  (void *dest, const void *source,
              size_t size);
Function Variants This function also has variants named _memcpy32 and _memcpy64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

dest
A pointer to the destination object.
source
A pointer to the source object.
size
The length of the object to be copied.

Description

This function copies size bytes from the object pointed to by source to the object pointed to by dest; it does not check for the overflow of the receiving memory area (dest). Unlike the strcpy function, the memcpy function does not stop when a null character is encountered.

Return Value
The value of dest


Previous Page | Next Page | Table of Contents | Index