C++ Programming/Code/Standard C Library/Functions/strtod

strtod
The function strtod returns whatever it encounters first in start as a double. end is set to point at whatever is left in start after that double. If overflow occurs, strtod returns either HUGE_VAL or -HUGE_VAL.

results in x being set to 42.0.


 * Related topics: atof