memcpy的BUG
摘要: If the source and destination overlap, memcpy does not ensure that the original source bytes in the overlapping region are copied before being overwritten. Use memmove to handle overlapping regions
如果原始資料source和目的單元格destination(的地址)重復(fù)了。在重復(fù)區(qū)域的原始source的字節(jié)被覆蓋以前,memcpy不能保證這些區(qū)域被拷貝。使用memove來處理重復(fù)的區(qū)域。
閱讀全文