Message-ID: <38C96E1D.4F79AD74@ou.edu> From: David Cleaver X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Question of fprintf... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 Date: Fri, 10 Mar 2000 15:50:21 -0600 NNTP-Posting-Host: 129.15.140.115 X-Complaints-To: usenet AT ou DOT edu X-Trace: news.ou.edu 952724942 129.15.140.115 (Fri, 10 Mar 2000 15:49:02 CST) NNTP-Posting-Date: Fri, 10 Mar 2000 15:49:02 CST Organization: The University of Oklahoma To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "nimrod a. abing" wrote: > > On Thu, 09 Mar 2000 22:54:56 David Cleaver wrote: > > >Ok, I'm printing variables to a file. The code looks like: > > > >... > >cotnum(a, outfile); > >fprintf(outfile, "^%d + ", x); > >... > > > >Here, cotnum is from a library I'm using which prints a number followed by a > >new-line character. Unfortunately, I want the following string in the fprintf > >to be on the same line as the number that was just printed. > > Try using: > > fprintf(outfile, "%d^%d + ", a, x); > Unfortunately, "a" is an object so this would only print out its address. Maybe I'll try to contact the writer of the libraries and see if he can add some other output options. Thank you all for your input though. -David C.