<ri*****@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
What is the difference between memcpy and memmove? Which is more
expensive?
memcpy expects that source and destination areas do not overlap.
It is undefined behaviour to give memcpy overlapping areas (and in C99,
memcpy has "restrict" qualifiers on both sides).
memmove behaves correctly in case of overlapping areas, but it is
potentially more expensive.
Hope it helps,
Ruslan Abdikeev.