9 static const char str[] = "NaN(blabla)something";
13 double d = strtod (str, &endp);
16 puts ("strtod did not return NAN");
21 puts ("strtod returned a sNAN");
24 if (strcmp (endp, "something") != 0)
26 puts ("strtod set incorrect end pointer");
30 float f = strtof (str, &endp);
33 puts ("strtof did not return NAN");
38 puts ("strtof returned a sNAN");
41 if (strcmp (endp, "something") != 0)
43 puts ("strtof set incorrect end pointer");
47 long double ld = strtold (str, &endp);
50 puts ("strtold did not return NAN");
55 puts ("strtold returned a sNAN");
58 if (strcmp (endp, "something") != 0)
60 puts ("strtold set incorrect end pointer");
67 #define TEST_FUNCTION do_test ()
68 #include "../test-skeleton.c"