Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpfcso!aoe From: aoe@hpfcso.HP.COM (Alexander Elkins) Newsgroups: comp.sys.amiga.programmer Subject: Re: Amiga 3000, 2.0 and Lattice C Message-ID: <101060006@hpfcso.HP.COM> Date: 1 Feb 91 21:15:59 GMT References: <91031.171403FORDE@vm.poly.edu> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 19 In article <91031.171403FORDE@vm.poly.edu> FORDE@vm.poly.edu writes: > > int var1=1; > float var2=2.3; > > printf("%d %f:n",var1,var2); > > results in: > > 1 %f > >Can anyone tell me why this is happening. I'm using Lattice C 5.10. You'll be using the printf() defined in amiga.lib. That version doesn't handle %f or %d and a number of other capabilities of the printf() we all know and love to use. Use "#include " and "fprintf(stdout,"%d %f:n",var1,var2);" to get the result you expect. - Alexander Elkins (aoe@hpfiaoe.fc.hp.com)