I'm trying to parse an argument value in C and convert the number to a double value. I have:
char *stringEnd;
double num = strtod("123.0", &stringEnd);
I used 123.0 just to test the function, but it always returns a value of 0.0. Does anybody know what I'm doing wrong?