printf == float?

Marty Leisner.Henr at Xerox.COM
Fri Apr 22 07:54:28 AEST 1988


A number of C compilers (aztec for example) have a reasonable strategy for the
float/printf problem.

There are two versions of printf -- one in mlib and one  in clib.  If you're
program uses floats, you gotta link in m.lib -- if you never use floats, the
c.lib version of printf has judicious ifdefs around the floating point
conversions.

Seems reasonable.

It is unreasonable to have to bring in 30k of floating point support to
	printf("Error code = %d\n", error);


marty
ARPA:	leisner.henr at xerox.com
GV:  leisner.henr
NS:  martin leisner:henr801c:xerox
UUCP:	nsc!nscimg!amps!marty
 



More information about the Comp.lang.c mailing list