This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
bug in sscanf
- To: cygwin at sources dot redhat dot com
- Subject: bug in sscanf
- From: Teun Burgers <a dot rburgers at freeler dot nl>
- Date: Wed, 09 May 2001 22:29:50 +0200
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