diff options
Diffstat (limited to 'stdio-common/scanf12.c')
-rw-r--r-- | stdio-common/scanf12.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/stdio-common/scanf12.c b/stdio-common/scanf12.c deleted file mode 100644 index db37e2fedc..0000000000 --- a/stdio-common/scanf12.c +++ /dev/null @@ -1,23 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -int -main (void) -{ - double d; - int c; - - if (scanf ("%lg", &d) != 0) - { - printf ("scanf didn't failed\n"); - exit (1); - } - c = getchar (); - if (c != ' ') - { - printf ("c is `%c', not ` '\n", c); - exit (1); - } - - return 0; -} |