1.3.12-2 : atof() always returns 0

Tim Prince tprince@computer.org
Fri Jul 12 07:32:00 GMT 2002


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/



More information about the Cygwin mailing list