I'm translatic some code from w32asm to ISO C++
I translate HeapAlloc with the operator New but what if I want to use the HEAP_ZERO_MEMORY flag?
How can I allocate memory initialized to ZERO in C++, using only standard functions?
I translate HeapAlloc with the operator New but what if I want to use the HEAP_ZERO_MEMORY flag?
How can I allocate memory initialized to ZERO in C++, using only standard functions?
Use calloc(), or a mix of malloc/new + memset.