sim printf
-
Hi, I need to create a function which would take in parameters like printf (or scanf, fprintf etc). i.e Say my function name is foo I need to be able to call it with foo(char *StringFormat, .....) just like printf can anyone help? Thanks, P
Look at the
va_start()
,va_arg()
, andva_end()
functions Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact" -
Look at the
va_start()
,va_arg()
, andva_end()
functions Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"