Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->memcpy()
|char *memcpy(void *dest,void* src, size_t count);||Copy characters from one buffer to another|
|dest||Pointer to buffer to copy to|
|src||Pointer to buffer to copy from|
|count||Number of characters to copy|
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.
The function returns a pointer to the start of the start of the destination buffer.