Why do ZeroMemory, etc. exist when there are memset, etc. already?

前端 未结 8 1098
萌比男神i
萌比男神i 2020-12-10 00:55

Why does ZeroMemory(), and similar calls exist in the Windows API when there are memset and related calls in the C standard library already? Which ones should I

8条回答
  •  情深已故
    2020-12-10 01:34

    According to MSDN, ZeroMemory is a macro. It probably exists as a convenience (e.g., naming convention) or for backwards compatibility.

提交回复
热议问题