Re: fscanf "%lf" misses the "-" sign in "-5.0e+00" on cygwin 1.5.13-1

2005-04-01 Thread Christopher Faylor
On Sat, Mar 26, 2005 at 10:52:58AM -0800, Brian Dessent wrote: >Isselmou dellahy wrote: >>I'm using cygwin 1.5.13-1 and gcc version 3.3.3 to compile the following >>foo.C : >>... >>The compiler does'nt show any warning and when executed prints: >> >>n=1 x=5.00 >> >>missing the "-" sign. > >You'

Re: fscanf "%lf" misses the "-" sign in "-5.0e+00" on cygwin 1.5.13-1

2005-03-26 Thread Brian Dessent
Isselmou dellahy wrote: > Hi, > I'm using cygwin 1.5.13-1 and gcc version 3.3.3 to compile the following > foo.C : > ... > The compiler does'nt show any warning and when executed prints: > > n=1 x=5.00 > > missing the "-" sign. You're seeing the same bug that was reported here

fscanf "%lf" misses the "-" sign in "-5.0e+00" on cygwin 1.5.13-1

2005-03-26 Thread Isselmou dellahy
Hi, I'm using cygwin 1.5.13-1 and gcc version 3.3.3 to compile the following foo.C : #include #include int main() { FILE *ff = fopen( "foo.dat", "r"); double x; int n = fscanf( ff, "%lf", &x); printf( "n=%d x=%lf\n", n, x); fclose(ff); return 0; } foo.dat contains the single text line: -5

fscanf "%lf" misses the "-" sign in "-5.0e+00" on cygwin 1.5.13-1

2005-03-26 Thread Isselmou dellahy
Hi, I'm using cygwin 1.5.13-1 and gcc version 3.3.3 to compile the following foo.C : #include #include int main() { FILE *ff = fopen( "foo.dat", "r"); double x; int n = fscanf( ff, "%lf", &x); printf( "n=%d x=%lf\n", n, x); fclose(ff); return 0; } foo.dat contains the single text line: -5