Hey everyone,
I'm using calloc to allocate memory and initialize each block in that memory to 0. If I call realloc sometime later to allocate more space, how can I make sure that all the blocks in the extra space are also initialized to 0?
Hey everyone,
I'm using calloc to allocate memory and initialize each block in that memory to 0. If I call realloc sometime later to allocate more space, how can I make sure that all the blocks in the extra space are also initialized to 0?
Look up memset().