From: Brandon S. Allbery (bsa@kf8nh.wariat.org)
Date: 08/29/93


From: bsa@kf8nh.wariat.org (Brandon S. Allbery)
Subject: Re: Bug in atof?
Date: Sun, 29 Aug 1993 13:35:00 GMT

In article <930828.220210.4B1.rusnews.w165w@mulvey.com> rich@mulvey.com (Rich Mulvey) writes:
>quantum@stein1.u.washington.edu (Tsung-lung Li) writes:
>> x = atof( st );
>> printf( "%s %f\n", st, x );
>> }
>>
>> Execution results:
>> 1E+4 1.000000
> You need to include stdlib.h so that you get the correct prototype for
>atof. As it is now, atof is implicitly defined to return an int.

I think the problem here is that atof() is traditionally declared in math.h.

++Brandon

-- 
Brandon S. Allbery         kf8nh@kf8nh.ampr.org          bsa@kf8nh.wariat.org
"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development."  ---dmeggins@aix1.uottawa.ca