Predefined macro
Copies count characters from the source memory area, pointed to by src, and writes this character string to a destination memory area, pointed to by dest.
Syntax:
char *memcpy (dest, src, count)
char *dest, *src;
int count;
where:
dest A character pointer that specifies the starting address for the destination memory area, to begin writing characters to.
src A character pointer that specifies the starting address for the source memory area, to begin copying characters from.
count An integer variable specifying the number of characters (bytes) to be copied, from the source location, to the destination location of memory.
Return Value
Pointer to char Points to the destination location that is one byte beyond the last byte written to. This allows continuation of the writing process with perfect alignment of bytes for string concatenation of memory blocks.
Rules
None.