This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

1.3.2 bug with scanf and long long int


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /