memmove()
実際に移動/コピーするものがない場合、またはmemcpy()
エッジケースとしてケースを処理する必要がありますか?
int numberOfBytes = ...
if( numberOfBytes != 0 ) {
memmove( dest, source, numberOfBytes );
}
または、チェックせずに関数を呼び出す必要があります
int numberOfBytes = ...
memmove( dest, source, numberOfBytes );
前のスニペットのチェックは必要ですか?