Updated to fedora-glibc-20061219T1804
[glibc.git] / stdlib / tst-strtod2.c
blob925ea9cafab60f824814d927e16d997d842749c1
1 #include <stdio.h>
2 #include <stdlib.h>
4 static int
5 do_test (void)
7 int status = 0;
8 const char s[] = "0x";
9 char *ep;
10 double r = strtod (s, &ep);
11 if (r != 0)
13 printf ("r = %g, expect 0\n", r);
14 status = 1;
16 if (ep != s + 1)
18 printf ("strtod parsed %ju characters, expected 1\n", ep - s);
19 status = 1;
21 return status;
24 #define TEST_FUNCTION do_test ()
25 #include "../test-skeleton.c"