In the C Programming Language, the memcpy function copies n characters from the object pointed to by s2 into the object pointed to by s1. It returns a pointer to the destination.
The memcpy function may not work if the objects overlap.
The syntax for the memcpy function in the C Language is:
void *memcpy(void *s1, const void *s2, size_t n);
The memcpy function returns s1.
In the C Language, the required header for the memcpy function is:
In the C Language, the memcpy function can be used in the following versions:
Other C functions that are similar to the memcpy function:
(scroll to see more)