Memmove
Memmove() is a C standard library function to copy a block of memory
Strcpy
The C standard library function, "strcpy()," is used to copy non-overlapping, null-terminated strings
Others
Example |
---|
Marcus yes memmove is faster than strcpy and faster than python but why from question Why is Python faster than C when concatenating two strings? |
It is usually more efficient than strcpy which must scan the data it copies or memmove which must take precautions to handle overlapping inputs from question How to copy char array to char pointer in C? |