Thread: formatted printing with fprintf

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    formatted printing with fprintf

    How would I get my printer output with fprintf appear on separate lines under another instead of like this?

    Code:
    something
                    something
                                   and something
    I have my code as
    Code:
    fprintf(stdprn,"something\nsomething\nand something");
    Or is fprintf like cprintf() where it doesn't translate the new line escape sequence? So I would have to put a return carriage before it?

    I'm using Borland C++ 4.5 under Windows 95.
    thank you again.
    Last edited by lambs4; 11-19-2001 at 07:54 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fprintf in void function Not Printing
    By thetinman in forum C Programming
    Replies: 5
    Last Post: 10-17-2006, 05:13 PM
  2. help with basic program
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 02-01-2006, 04:19 PM
  3. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 10:33 PM
  4. printing error using fprintf
    By ahming in forum C Programming
    Replies: 7
    Last Post: 05-26-2005, 09:45 PM
  5. Help with formatted printing with arrays
    By nizbit in forum C Programming
    Replies: 2
    Last Post: 12-11-2004, 01:52 PM