title: Convert a float to a string
body: <p>How can I convert a floating point integer to a string in C/C++ without the library function <code>sprintf</code>?</p>
  
  <p>I'm looking for a function, e.g. <code>char *ftoa(float num)</code> that converts <code>num</code> to a string and returns it.</p>
  
  <p><code>ftoa(3.1415)</code> should return <code>"3.1415"</code>.</p>