title: How to initialise data with 0 while reallocating in C?
body: <p>I have an array of <code>char</code>, and want to dynamically allocate it while initialising each element with <code>0</code>.</p>
  <p>For the first time, I can do this with <code>calloc()</code>, but for next times, I will be forced to use <code>realloc()</code>, which of course does not initialise the data.</p>
  <p>Note that I only want to initialise those amounts of bytes which have been reallocated.</p>
  <p>How can I do that?
  Thank you in advance.</p>