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 From: "Keith Frost" To: Subject: 1.3.1-1 and Win2K: scanf bug Date: Thu, 24 May 2001 15:18:05 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 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