aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tstdiomisc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-13 19:03:53 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-13 19:03:53 +0000
commit77d10f94bf43b73394f9a3eaf1052c4bfc52905f (patch)
treea13eea72d219ae48f4ee3a283ad5c549549676bf /stdio-common/tstdiomisc.c
parent47b856a9eac04e1e18d949cc751c397610bba429 (diff)
downloadglibc-77d10f94bf43b73394f9a3eaf1052c4bfc52905f.zip
glibc-77d10f94bf43b73394f9a3eaf1052c4bfc52905f.tar.gz
glibc-77d10f94bf43b73394f9a3eaf1052c4bfc52905f.tar.bz2
Update.
* version.h (VERSION): Bump to 2.0.102. * stdio-common/tstdiomisc.c (t2): Update test case for last scanf change. * stdio-common/scanf7.c (main): Likewise. 1998-11-13 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'stdio-common/tstdiomisc.c')
-rw-r--r--stdio-common/tstdiomisc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdio-common/tstdiomisc.c b/stdio-common/tstdiomisc.c
index 8dac4f2..e99457f 100644
--- a/stdio-common/tstdiomisc.c
+++ b/stdio-common/tstdiomisc.c
@@ -19,17 +19,17 @@ t2 (void)
int retval;
#define SCAN(INPUT, FORMAT, VAR, EXP_RES, EXP_VAL) \
VAR = -1; \
- retval = sscanf (INPUT, FORMAT, &VAR); \
+ retval = sscanf (INPUT, FORMAT, &VAR); \
printf ("sscanf (\"%s\", \"%s\", &x) => %d, x = %ld\n", \
INPUT, FORMAT, retval, VAR); \
result |= retval != EXP_RES || VAR != EXP_VAL
SCAN ("12345", "%ld", N, 1, 12345);
- SCAN ("12345", "%llllld", N, 0, -1);
- SCAN ("12345", "%LLLLLd", N, 0, -1);
+ SCAN ("12345", "%llllld", N, -1, -1);
+ SCAN ("12345", "%LLLLLd", N, -1, -1);
SCAN ("test ", "%*s%n", n, 0, 4);
- SCAN ("test ", "%2*s%n", n, 0, -1);
- SCAN ("12 ", "%l2d", n, 0, -1);
+ SCAN ("test ", "%2*s%n", n, -1, -1);
+ SCAN ("12 ", "%l2d", n, -1, -1);
SCAN ("12 ", "%2ld", N, 1, 12);
return result;