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?
Posted on 2005-04-26 11:40:30 by greenant
Use calloc(), or a mix of malloc/new + memset.
Posted on 2005-04-26 11:45:22 by f0dder