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 Message-ID: <3AF9A8BE.783B098A@freeler.nl> Date: Wed, 09 May 2001 22:29:50 +0200 From: Teun Burgers 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all, I think there is a bug in cygwin sscanf. With stock cygwin as of 8-05-2001 the following program #include 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