sscanf problem

Michael Hines michael.hines@yale.edu
Mon Apr 4 17:33:00 GMT 2005


The following program prints
i=1 x=0
instead of
i=0 x=10
when using the latest version of cygwin1.dll.


#include <stdio.h>
int main() {
         int i;
         double x;
         x = 10;
         i = sscanf("n", "%lf", &x);
         printf("i=%d x=%g\n", i, x);
         return 0;
}


-Michael Hines

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list