mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-28 21:41:08 +00:00
77d10f94bf
* 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>
24 lines
397 B
C
24 lines
397 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
long long int n;
|
|
int ret;
|
|
|
|
n = -1;
|
|
ret = sscanf ("1000", "%lld", &n);
|
|
printf ("%%lld: ret: %d, n: %Ld\n", ret, n);
|
|
if (ret != 1 || n != 1000L)
|
|
abort ();
|
|
|
|
n = -2;
|
|
ret = sscanf ("1000", "%llld", &n);
|
|
printf ("%%llld: ret: %d, n: %Ld\n", ret, n);
|
|
if (ret > 0 || n >= 0L)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|