delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/10/05:41:12

To: djgpp AT delorie DOT com
Date: Fri, 10 Mar 2000 08:03:42 0000
From: "nimrod a. abing" <synflood AT eudoramail DOT com>
Message-ID: <BIFEFBMIIJCAAAAA@shared1-mail.whowhere.com>
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)
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019