bug in sscanf

Teun Burgers a.rburgers@freeler.nl
Wed May 9 13:47:00 GMT 2001


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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /