简体   繁体   中英

Difference between WIN32 memory macros vs cstring memory operations?

Memory block operations in c, such as memcpy, allow for optimised operations for moving or clearing blocks of memory. I have recently discovered that the WIN32 API provides macros supporting similar if not identical features, such as ZeroMemory. I do not know the difference and wish to find out. http://msdn.microsoft.com/en-us/library/windows/desktop/aa366920(v=vs.85).aspx

ZeroMemory是一个调用memset的宏, CopyMemory是一个调用memcpy的宏,等等。所以,根本没有区别。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM