mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* stdio-common/vfscanf.c: Handle input -- with format %f correctly (it's no input error). * stdio-common/tstscanf.c: Add test case for format %f with input --. * stdio-common/scanf12.c: Correct expected result for first scanf.
This commit is contained in:
@ -7,7 +7,7 @@ main (void)
|
||||
double d;
|
||||
int c;
|
||||
|
||||
if (scanf ("%lg", &d) != EOF)
|
||||
if (scanf ("%lg", &d) != 0)
|
||||
{
|
||||
printf ("scanf didn't failed\n");
|
||||
exit (1);
|
||||
|
Reference in New Issue
Block a user