1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* stdio-common/bug26.c (main): Correct fscanf template.

Fixup for commit 6ecec3b616.
This commit is contained in:
Thomas Schwinge
2013-05-26 21:59:24 +02:00
parent 07b4c13d0b
commit 528c24058f
2 changed files with 5 additions and 2 deletions

View File

@ -28,8 +28,9 @@ main (void)
char s[] = "+.e";
f = fmemopen (s, strlen (s), "r");
/* This should fail to parse a float and leave 'e' in the input. */
lost |= (fscanf (f, "%f", &d) != 0);
/* This should fail to parse a floating-point number, and leave 'e' in the
input. */
lost |= (fscanf (f, "%lf", &d) != 0);
c = fgetc (f);
lost |= c != 'e';
puts (lost ? "Test FAILED!" : "Test succeeded.");