diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-09-22 16:03:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-09-22 16:03:46 +0000 |
commit | 9df541684a60a94d94cc0c08de119eec718f2318 (patch) | |
tree | 2867818d5fcba8d0cbf7547e319f0646534798b1 /stdio-common/tstscanf.c | |
parent | 5b5255f197c7b6355010d781370a3331ab5b68c3 (diff) | |
download | glibc-9df541684a60a94d94cc0c08de119eec718f2318.tar glibc-9df541684a60a94d94cc0c08de119eec718f2318.tar.gz glibc-9df541684a60a94d94cc0c08de119eec718f2318.tar.bz2 glibc-9df541684a60a94d94cc0c08de119eec718f2318.zip |
Update.
1999-09-22 Andreas Jaeger <aj@suse.de>
* stdio-common/tstscanf.c (main): Add test case from PR libc/1313
reported by Ben Caradoc-Davies <bmcd@physics.otago.ac.nz>.
1999-09-22 Andreas Schwab <schwab@suse.de>
* stdio-common/vfscanf.c: Fix width handling when scanning floats.
1999-04-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* elf/Makefile (CFLAGS-multiload.c): Change to allow building in
the source directory. Fixes PR libc/1059.
Diffstat (limited to 'stdio-common/tstscanf.c')
-rw-r--r-- | stdio-common/tstscanf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/stdio-common/tstscanf.c b/stdio-common/tstscanf.c index 4e56251e03..93f77ce2d9 100644 --- a/stdio-common/tstscanf.c +++ b/stdio-common/tstscanf.c @@ -265,5 +265,19 @@ main (int argc, char **argv) } } + fputs ("Test 9:\n", stdout); + { + /* From PR libc/1313 reported by Ben Caradoc-Davies <bmcd@physics.otago.ac.nz>. */ + float value; + int res; + + res = sscanf ("0123", "%2f", &value); + if (res != 1 || value != 1.0) + { + fputs ("test failed!\n", stdout); + result = 1; + } + } + exit (result); } |