1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
* 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:
Ulrich Drepper
2000-07-22 07:26:13 +00:00
parent 40c014b3dc
commit fcc10ffab6
4 changed files with 24 additions and 6 deletions

View File

@ -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);