This is the mail archive of the
cygwin
mailing list for the Cygwin project.
sscanf problem
- From: Michael Hines <michael dot hines at yale dot edu>
- To: cygwin at cygwin dot com
- Date: Mon, 04 Apr 2005 14:43:09 -0400
- Subject: sscanf problem
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/