memcpy VS memmove

memcpy() 和 memmove() 有什么区别?

如果源和目的参数所指向的内存有重叠区域, memmove() 提供有保证的行为。而 memcpy() 
则不能提供这样的保证, 因此可以实现得更加有效率。如果有疑问,
最好使用 memmove()。

Reference :
http://c-faq.com/ansi/memmove.html
http://blog.csdn.net/swguru/archive/2002/08/05/17175.aspx 

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s