title: string to decimal number in C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2892998/converting-a-string-into-a-double">Converting a string into a double</a>  </p>
  </blockquote>
  
  
  
  <p>I need to convert <code>" 5.71"</code> to <code>5.71</code> in C.</p>
  
  <p>I am reading in a string as a token, but need to store the value as a double. </p>
  
  <p>Are there any functions that do this? And what print statement should I be using?</p>
  
  <pre><code>char *number = "5.71";
  printf("%???", double);
  </code></pre>
  
  <p>Any help would be great!</p>