Does memmove actually “move” a chunk of memory and leave behind zeros at the source? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: memcpy vs memmove Does memmove actually "move" a chunk of memory? If so, does it leave the memory with zeros? Or, is it just like memcpy? I am looking at the man page, and I do not believe my assumption is correct. If I want to move a chunk of memory using memmove, would I have to manually zero out the chunk of memory where I did the move? 回答1: memmove has nothing to do with clearing the old memory, and in fact