delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/24/19:12:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cygwin AT cygwin DOT com>
To: Keith Frost <keithf AT runbox DOT com>
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 <keithf AT runbox DOT com>, cygwin AT cygwin DOT com
References: <OLEFKPKBBNKNGOPBMEGJOEAHCAAA DOT keithf AT runbox DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <OLEFKPKBBNKNGOPBMEGJOEAHCAAA.keithf@runbox.com>; 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 <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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019