Thread: Alternative forms of printf.

  1. #1
    Welcome to the real world
    Join Date
    Feb 2004
    Posts
    50

    Alternative forms of printf.

    I'm trying to compile a list of alternative forms of printf. What other functions have the same capability as printf?

  2. #2
    /*enjoy*/
    Join Date
    Apr 2004
    Posts
    159
    if you are using type string
    Code:
    puts(char); ==printf("%s",char);
    another one but using printf in define
    [code]
    #define ret printf("\n/*or anythings*/")
    /*into any function
    you can use this*/
    ret;
    [/code ]

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You mean like fprintf(), sprintf() etc ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    what do you mean by "capability"?

    do you mean what other functions write (to either STDOUT or elesewhere)?
    DrakkenKorin

    Get off my Intarweb!!!!

  5. #5
    and my personal favorite - write()
    DrakkenKorin

    Get off my Intarweb!!!!

  6. #6
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    Code:
    printf,  fprintf,  sprintf,  snprintf,  vprintf, vfprintf,
           vsprintf, vsnprintf

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making it portable.....?
    By ShadeS_07 in forum C Programming
    Replies: 11
    Last Post: 12-24-2008, 09:38 AM
  2. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM
  3. segmentation fault upon reload
    By yabud in forum C Programming
    Replies: 8
    Last Post: 12-18-2006, 06:54 AM
  4. Simple C question: user input to repeat a loop
    By evernaut in forum C Programming
    Replies: 2
    Last Post: 11-18-2006, 09:23 AM
  5. Drawing tables in C
    By stanoman in forum C Programming
    Replies: 5
    Last Post: 10-09-2003, 10:14 AM