How to reallocate content on bigger storage but that the rest of content be zero ? I have at the moment like
void* oldContent;
size_t oldContentSize;
size_t newBufferSize;
realloc(oldContent, newBufferSize);
How to achieve that all with inde from oldContentSize to the end of new buffer have value '\0' ?