* malloc/malloc.c: Add branch prediction for use of the hooks.
[glibc.git] / stdio-common / scanf12.c
blobdb37e2fedc930265cbe238685a2576b98293e0b2
1 #include <stdio.h>
2 #include <stdlib.h>
4 int
5 main (void)
7 double d;
8 int c;
10 if (scanf ("%lg", &d) != 0)
12 printf ("scanf didn't failed\n");
13 exit (1);
15 c = getchar ();
16 if (c != ' ')
18 printf ("c is `%c', not ` '\n", c);
19 exit (1);
22 return 0;