This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.3.1-1 and Win2K: scanf bug
- To: Keith Frost <keithf at runbox dot com>
- Subject: Re: 1.3.1-1 and Win2K: scanf bug
- From: Christopher Faylor <cygwin at cygwin dot com>
- Date: Thu, 24 May 2001 18:51:16 -0400
- Cc: cygwin at cygwin dot com
- References: <OLEFKPKBBNKNGOPBMEGJOEAHCAAA.keithf@runbox.com>
- Reply-To: cygwin at cygwin dot com
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