To: djgpp AT delorie DOT com Date: Fri, 10 Mar 2000 08:03:42 0000 From: "nimrod a. abing" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off X-Mailer: MailCity Service Subject: Re: Question of fprintf... X-Sender-Ip: 208.160.246.197 Organization: QUALCOMM Eudora Web-Mail (http://www.eudoramail.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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); --- nimrod_a_abing ---------------- Hot Windows Tip: ---------------- How to free up at least 300 MB of hard disk space (as seen from the MS-DOS prompt): C:\>deltree c:\windows Delete directory "Windows" and all its subdirectories? [yn] y Deleting Windows... C:\> (don't try this at home kids... not unless you have Linux installation CDs) Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com