[comp.sys.mac.programmer] MPW / Stubs.c.o / floating point BUG

dan@Apple.COM (Dan Allen) (05/28/88)

The stubs file as it ships with MPW
also stubs out the routines that print floating point numbers.  If you
do a printf with a floating point number nothing will complain but your
answer will be entirely wrong!
 
A typical misuse of this stubs file came for me when I wrote a simple
tool that did no floating point.  Then I wanted to time the benchmark
with TickCount and print the result rounded  to the nearest second.  THe
numbers displayed were all wrong.

To fix this problem, delete the following two lines from the stubs.c
file that ships with MPW:

ecvt() {}
fcvt() {}

 
Dan Allen
Software Explorer
Apple Computer