What is cprintf how and why to use it?

This is a discussion on What is cprintf how and why to use it? within the C Programming forums, part of the General Programming Boards category; as titile......

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    51

    What is cprintf how and why to use it?

    as titile...

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Well it is very similar to printf. However, cprintf does not translate linefeed characters into carriage return-linefeed combinations on output. cprintf is non-ANSI standard. You should try to avoid non-ANSI functions whenever possible, and it certainly seems possible here.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

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