Possible Duplicate:
Converting a string into a double
I need to convert " 5.71"
to 5.71
in C.
I am reading in a string as a token, but need to store the value as a double.
Are there any functions that do this? And what print statement should I be using?
char *number = "5.71";
printf("%???", double);
Any help would be great!