
UM004001-COR1103 4–11
Run Time Environment Library Functions
memcpy FUNCTION
Header file statement: #include <string.h>
Syntax: void *memcpy (void *dest, const void *src, size_t count)
The memcpy function copies count bytes of src to dest. If the source and destination overlap,
these functions do not ensure that the original source bytes in the overlapping region are cop
-
ied before being overwritten. Use memmove to handle overlapping regions.
Return Value
The memcpy function returns the value of dest.
memmove FUNCTION
Header file statement: #include <string.h>
Syntax: void *memmove (void *dest, const void *src, size_t count)
The memmove function copies count characters from the source (src) to the destination
(dest). If some regions of the source area and the destination overlap, the memmove function
ensures that the original source bytes in the overlapping region are copied before being over
-
written.
Return Value
The memmove function returns the value of dest.
Parameter Description
dest
New buffer
src Buffer to copy from
count Number of characters to copy
Parameter Description
dest
Destination object
src Source object
count Number of characters to copy
Comentarios a estos manuales