title: How to convert a double into a char*
body: <p>I am heavily struggling with a question which should be very easy: how do I do a simple type conversion (from <code>double</code> into <code>char*</code>) in basic C.</p>
  
  <p>I have found quite some solutions, but they are all based on conversions from <code>double</code> to <code>char[x]</code>, but I am working here with <code>char*</code>, not with <code>char[]</code>. (I don't know how long the resulting string will be).
  <br>
  On top of that, I really can't believe that another type (be it <code>stringstream</code>, <code>std::strings</code>, ...) are needed for something that simple.</p>
  
  <p>I admit, I'm a complete newbie in basic C, but I have worked in other languages (Visual Basic, Delphi, Java, ...) and I just can't understand why I can't find a simple function like "to_char_pointer(double d)" to do this.</p>
  
  <p>Does anybody have an idea? <br/></p>