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]
Other format: [Raw text]

Re: 1.3.12-2 : atof() always returns 0


On Friday 12 July 2002 01:32, Hervé Le Net wrote:
> Hi,
>
> The atof() function, compiled with gcc, always returns 0.
>
> Example :
>
> f = atof("123.456");
> printf("%f\n", f);
>
> Result :
> 0.000000
>
> Regards,
> H. Le Net
>
Do you mean you compiled atof(), or that you compiled some code fragment of 
your own which calls atof(), possibly without employing the correct headers? 
gcc conforms to the C standard, not to the usual practice prior to 13 years 
ago.
-- 
Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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