This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]