Make ldbl-128 getpayload, setpayload functions use _Float128.
[glibc.git] / stdlib / tst-atof1.c
blob879d866558407b7df574c44b55ecadcaa122b471
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 static int
6 do_test (void)
8 char buf[100];
9 snprintf (buf, sizeof (buf), "%g", atof ("0x10p-1"));
10 if (strcmp (buf, "8") != 0)
12 printf ("got \"%s\", expected \"8\"\n", buf);
13 return 1;
15 return 0;
18 #define TEST_FUNCTION do_test ()
19 #include "../test-skeleton.c"