This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
1.3.2 bug with scanf and long long int
- To: cygwin at cygwin dot com
- Subject: 1.3.2 bug with scanf and long long int
- From: Tanguy Risset <risset at irisa dot fr>
- Date: Tue, 03 Jul 2001 13:20:44 +0200
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/