I'm trying to compile a list of alternative forms of printf. What other functions have the same capability as 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?...
I'm trying to compile a list of alternative forms of printf. What other functions have the same capability as printf?
if you are using type string
another one but using printf in defineCode:puts(char); ==printf("%s",char);
[code]
#define ret printf("\n/*or anythings*/")
/*into any function
you can use this*/
ret;
[/code ]
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.
what do you mean by "capability"?
do you mean what other functions write (to either STDOUT or elesewhere)?
DrakkenKorin
Get off my Intarweb!!!!
and my personal favorite - write()
DrakkenKorin
Get off my Intarweb!!!!
Code:printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf