[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


memcpy

Copy a contiguous memory block.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <string.h>
void *memcpy(void *dest, 
   const void *source, size_t n);
Parameters:

Parameters for this facility are:

dest  
void *  
The destination memory  
source  
const void *  
The source to copy  
n  
size_t  
The maximum length to copy  

Remarks:

The memcpy() function copies the first n characters from the item pointed to by source to the item pointed to by dest. The behavior of memcpy() is undefined if the areas pointed to by dest and source overlap. The memmove() function reliably copies overlapping memory blocks.

Return:

memcpy() returns the value of dest.

See Also:

"memmove"

"strcpy"

"strncpy"

For example of memcpy() usage:
Refer to  "Example of memchr() usage.".


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000