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 |
Message-ID: | <3AF9A8BE.783B098A@freeler.nl> |
Date: | Wed, 09 May 2001 22:29:50 +0200 |
From: | Teun Burgers <a DOT rburgers AT freeler DOT nl> |
X-Mailer: | Mozilla 4.72 [en] (Win98; I) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin AT sources DOT redhat DOT com |
Subject: | bug in sscanf |
Hello all, I think there is a bug in cygwin sscanf. With stock cygwin as of 8-05-2001 the following program #include <stdio.h> main () { float v; char *s = "shape(-10)"; sscanf(s, "%*[^(](%f)", &v); printf("v: %f\n", v); } compiled with gcc -o tst tst.c prints 10.0000. It should print -10.0000. gcc -mno-cygwin *does* print the minus sign. The djgpp gcc port also prints the minus sign, so I think cygwin is broken here. regards Teun Burgers -- 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 |