delorie.com/archives/browse.cgi | search |
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 |
From: | "Keith Frost" <keithf AT runbox DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | 1.3.1-1 and Win2K: scanf bug |
Date: | Thu, 24 May 2001 15:18:05 -0700 |
Message-ID: | <OLEFKPKBBNKNGOPBMEGJOEAHCAAA.keithf@runbox.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |