This code is not collected and gives error C3861: strtold (id not found).
#include <stdio.h> /* printf, NULL */ #include <stdlib.h> /* strtold */ int main () { char szOrbits[] = "90613.305 365.24"; char * pEnd; long double f1, f2; f1 = strtold (szOrbits, &pEnd); // ошибка f2 = strtold (pEnd, NULL); // ошибка printf ("Pluto takes %.2Lf years to complete an orbit.\n", f1/f2); return 0; }
there is also no such function in the std space.