私は違いを理解しようとしているmemcpy()としmemmove()、そして私は、テキスト読み持っているmemcpy()のに対し、重複送信元と送信先の世話をしていないmemmove()んです。
ただし、これらの2つの関数を重複するメモリブロックで実行すると、どちらも同じ結果になります。たとえば、memmove()ヘルプページで次のMSDNの例を見てください。
の欠点を理解し、それmemcpyをどのようにmemmove解決するためのより良い例がありますか?
// crt_memcpy.c
// Illustrate overlapping copy: memmove always handles it correctly; memcpy may handle
// it correctly.
#include <memory.h>
#include <string.h>
#include <stdio.h>
char str1[7] = "aabbcc";
int main( void )
{
    printf( "The string: %s\n", str1 );
    memcpy( str1 + 2, str1, 4 );
    printf( "New string: %s\n", str1 );
    strcpy_s( str1, sizeof(str1), "aabbcc" );   // reset string
    printf( "The string: %s\n", str1 );
    memmove( str1 + 2, str1, 4 );
    printf( "New string: %s\n", str1 );
}
出力:
The string: aabbcc
New string: aaaabb
The string: aabbcc
New string: aaaabb
memcpy希望assertの領域が意図的にあなたのコードのバグをカバーするのではなく、重複しないように。
                The string: aabbcc New string: aaaaaa The string: aabbcc New string: aaaabb