S
ssylee
I'm trying to set all the entries of a dynamically allocated memory
block for a variable to zero. I have allocated the memory using
malloc, but there is no calloc available. How would I set the entries
to zero? Would I have to do it manually using a for loop, setting each
individual entry to zero?
block for a variable to zero. I have allocated the memory using
malloc, but there is no calloc available. How would I set the entries
to zero? Would I have to do it manually using a for loop, setting each
individual entry to zero?