Alternative forms of printf.

This is a discussion on Alternative forms of printf. within the C Programming forums, part of the General Programming Boards category; I'm trying to compile a list of alternative forms of printf. What other functions have the same capability as 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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,344
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Nosepicker DrakkenKorin's Avatar
    Join Date
    Nov 2001
    Posts
    407
    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
    Nosepicker DrakkenKorin's Avatar
    Join Date
    Nov 2001
    Posts
    407
    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, 08:38 AM
  2. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 04:42 PM
  3. segmentation fault upon reload
    By yabud in forum C Programming
    Replies: 8
    Last Post: 12-18-2006, 05: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, 08:23 AM
  5. Drawing tables in C
    By stanoman in forum C Programming
    Replies: 5
    Last Post: 10-09-2003, 10:14 AM

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