C99
Since C99 the C library has a set of safe conversion functions that interpret a string as a number. Their names are of the form strtoX, where X is one of l, ul, d, etc to determine the target type of the conversion
double strtod(char const* p, char** endptr);
long double strtold(char const* p...