Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!Leisner.Henr@Xerox.COM From: Leisner.Henr@Xerox.COM (Marty) Newsgroups: comp.lang.c Subject: printf == float? Message-ID: <13065@brl-adm.ARPA> Date: 21 Apr 88 21:54:28 GMT Sender: news@brl-adm.ARPA Lines: 20 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@xerox.com GV: leisner.henr NS: martin leisner:henr801c:xerox UUCP: nsc!nscimg!amps!marty