Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 24 May 2001 18:51:16 -0400 From: Christopher Faylor To: Keith Frost Cc: cygwin AT cygwin DOT com Subject: Re: 1.3.1-1 and Win2K: scanf bug Message-ID: <20010524185116.B11565@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Keith Frost , cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: ; from keithf@runbox.com on Thu, May 24, 2001 at 03:18:05PM -0700 Upgrade your cygwin version. cgf On Thu, May 24, 2001 at 03:18:05PM -0700, Keith Frost wrote: > >keith AT ORION ~ >$ cat test.c >#include > >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 AT ORION ~ >$ gcc -o tst test.c > >keith AT 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 AT ORION ~ >$ gcc --version >2.95.3-4 > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- cgf AT cygnus DOT 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