1.3.2 bug with scanf and long long int
Tanguy Risset
risset@irisa.fr
Tue Jul 3 04:20:00 GMT 2001
Hello
I cannot use scanf with long long int, the negative integer are not
scanned correctly
see the program below.
I'm using the cygwin version 1.3.2 on WindowsNT
Thanks for your help
Tanguy Risset
#include<stdio.h>
int main() {
long long int x;
scanf("%lld",&x);
printf("x == %lld\n",x);
return;
}
execution:
gcc test1.c
a
-1
x == 4294967295
--
| Tanguy Risset Tel (from France): 02-99-84-74-60
| Irisa Tel (not from France): +33 2-99-84-74-60
| Campus de Beaulieu Fax: +33-(0)2-99-84-71-71
| 35042 Rennes E-Mail: risset@irisa.fr
| FRANCE http://www.irisa.fr/api/HOMEPAGE/Risset/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list