title: How much overhead do realloc calls introduce?
body: <p>I am using <code>realloc</code> in every iteration of a <code>for</code> loop that iterates more that 10000 times.</p>
  
  <p>Is this a good practice? Will <code>realloc</code> cause an error if it was called a lot of times?</p>