C
CBFalconer
.... snip ...
.... snip ...7.21.2.2p2: "[...] Copying takes place as if the n
characters from the object pointed to by s2 are first
copied into a temporary array of n characters that does
not overlap the objects pointed to by s1 and s2, and
then the n characters from the temporary array are copied
into the object pointed to by s1."
Is there a reason (well, a reason behind history, which is
probably the currently-live reason) why memmove does a non-
destructive copy instead of smearing? It seems, to my limited
imagination, that smearing would be a lot more useful.
If you examine Erics quote with care, you will notice the magic
phrase "as if". The thing that counts is the end result.