title: convert csv string to array of floats
body: <p>Can anyone advise on a simple way of converting a csv string to an array of floats in C?</p>
  
  <p>e.g.</p>
  
  <pre><code>char my_string[] = "1.0,2.0,3.0";
  </code></pre>
  
  <p>to: </p>
  
  <pre><code>my_array = [1.0, 2.0, 3.0]
  </code></pre>
  
  <p>where my_array is of type <code>float[]</code></p>
  
  <p>I would use <code>sscanf</code> as a quick and easy solution but I don't know how many values are contained in the string in advance</p>
  
  <p>Is there some existing library function that could do this without me having to resort to looping over every <code>char</code> looking for a ","?</p>