mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
24 lines
299 B
C
24 lines
299 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
double d;
|
||
|
int c;
|
||
|
|
||
|
if (scanf ("%lg", &d) != EOF)
|
||
|
{
|
||
|
printf ("scanf didn't failed\n");
|
||
|
exit (1);
|
||
|
}
|
||
|
c = getchar ();
|
||
|
if (c != ' ')
|
||
|
{
|
||
|
printf ("c is `%c', not ` '\n", c);
|
||
|
exit (1);
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|