title: Split a string into an integer array in C
body: <p>I have a comma delimited string in a C app that I'm putting together and I want to split it into an array of integer values.
  The string could contain any number of comma delimited values so I also dont have an initial size for the array.</p>
  
  <p>e.g. </p>
  
  <pre><code>"345,3345,35,75,52,386"
  </code></pre>
  
  <p>and id like to do something like...</p>
  
  <pre><code>int parsedArray[] = parseString("345,3345,35,75,52,386");
  </code></pre>
  
  <p>This would be a breeze in java or c# but I think I'm a little out of my depth when it comes to C.
  Any ideas of how to achieve this?</p>