Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->memcpy()
Summary
#include <string.h>
char *memcpy(void *dest,void* src, size_t count); | Copy characters from one buffer to another |
Parameters
dest | Pointer to buffer to copy to |
src | Pointer to buffer to copy from |
count | Number of characters to copy |
Description
This function copies count bytes from src to dest. If the source and destination buffers overlap, then the function does not guarantee that the original bytes in the overlapping region will be copied before they are overwritten. Use memmove() for overlapping buffers.
Return Value
The function returns a pointer to the start of the start of the destination buffer.