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 call? I can guess the answer is “depends”. On what?
Why does ZeroMemory() , and similar calls exist in the Windows API when there
Share
In C and C++,
ZeroMemory()andmemset()are the exact same thing.Why use
ZeroMemory()then? To make it obvious. But I prefermemset()in C or C++ programs.