printf wont print without newline

This is a discussion on printf wont print without newline within the C Programming forums, part of the General Programming Boards category; for some reason printf and fputs wont print a line unless it contains a newline at the end of it? ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    8

    printf wont print without newline

    for some reason printf and fputs wont print a line unless it contains a newline at the end of it?

    is there anyway to force it to print

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    ..................
    Join Date
    Oct 2005
    Posts
    11
    Hi,
    Code:
    You mean Printf("xxxxxxxxxxxxxxx \n ")

  4. #4
    ..................
    Join Date
    Oct 2005
    Posts
    11
    Hi
    I am sorry abt the previous reply..

    You mean adding an \n character at the end of printf statement..isn't it????

  5. #5
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Yes, they asked how to make printf show output without adding a \n. Dave Sinkula's reply answers the question, and links to the explanation.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a C Programing Quiz project
    By dilemma in forum C Programming
    Replies: 12
    Last Post: 05-15-2009, 04:35 PM
  2. segmentation fault upon reload
    By yabud in forum C Programming
    Replies: 8
    Last Post: 12-18-2006, 06:54 AM
  3. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  4. whats wrong with this?
    By petedee in forum C Programming
    Replies: 32
    Last Post: 01-06-2004, 10:28 PM
  5. Azbia - a simple RPG game code
    By Unregistered in forum Game Programming
    Replies: 11
    Last Post: 05-03-2002, 07:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21