9 static const char str
[] = "NaN(blabla)something";
13 double d
= strtod (str
, &endp
);
16 puts ("strtod did not return NAN");
19 if (strcmp (endp
, "something") != 0)
21 puts ("strtod set incorrect end pointer");
25 float f
= strtof (str
, &endp
);
28 puts ("strtof did not return NAN");
31 if (strcmp (endp
, "something") != 0)
33 puts ("strtof set incorrect end pointer");
37 long double ld
= strtold (str
, &endp
);
40 puts ("strtold did not return NAN");
43 if (strcmp (endp
, "something") != 0)
45 puts ("strtold set incorrect end pointer");
52 #define TEST_FUNCTION do_test ()
53 #include "../test-skeleton.c"