Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!luth!d87-khd From: d87-khd@sm.luth.se (Karl-Gunnar Hultland) Newsgroups: comp.sys.amiga Subject: Re: Lattice atof() - printf() Bug? Message-ID: <1085@tau.sm.luth.se> Date: 14 Sep 90 06:32:07 GMT References: <30123@nigel.ee.udel.edu> Reply-To: Karl-Gunnar Hultland Organization: University of Lulea, Sweden Lines: 25 UUCP-Path: {uunet,mcvax}!sunic.se!tau.luth.se!d87-khd In article <30123@nigel.ee.udel.edu> R_MCINTI%UNHH.BITNET@mitvma.mit.edu writes: >Please - no more - Oh-little-boys-please-link-with-lcm.lib. >The FACTS: >- Using Lattice C 5.02 >- Including or with appropriate math libraries linked in > before lc.lib > >PROBLEM: atof() works - But how do you print it out? printf() with the %f or >%g option does not seem to work.- Bug ? > >Thanks in advance for any help. - Scott McIntire My guess is that you are using the _builtin_printf which get defined in stdio.h, examine it and do the proper #undef. The builtin version is smaller but supports only integer and string output. Karl --- Karl Hultland,(d87-khd@sm.luth.se) University of Lulea,Sweden Revolution: in politics, an abrupt change in the form of misgovernment. - A. Bierce