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]

Re: 1.3.1-1 and Win2K: scanf bug


Upgrade your cygwin version.

cgf

On Thu, May 24, 2001 at 03:18:05PM -0700, Keith Frost wrote:
>
>keith@ORION ~
>$ cat test.c
>#include <stdio.h>
>
>int main (int argc, char *argv[])
>{
>  int i;
>  float x;
>
>  for (i=0; i<5; i++)
>  {
>    printf("Enter a number\n");
>    scanf("%f", &x);
>    printf("%g\n", x);
>  }
>}
>
>keith@ORION ~
>$ gcc -o tst test.c
>
>keith@ORION ~
>$ ./tst
>Enter a number
>0.012342
>12342
>Enter a number
>1.33525e4
>133525
>Enter a number
>0.032525e15
>9
>Enter a number
>1.1525e-12
>11525
>Enter a number
>0.000315252
>315252
>
>keith@ORION ~
>$ gcc --version
>2.95.3-4
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
cgf@cygnus.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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