kamesh3183 has asked for the wisdom of the Perl Monks concerning the following question:
How can i handle variable arguments in Perl?int recordStatus(LPCTSTR sFormat, ...) { if ((m_bUseLog) &&(iLogLevel <= m_iLogLevel)) { va_list argptr; int retval; va_start(argptr, sFormat); _ASSERTE(sFormat != NULL); retval = vfprintf(m_sSourceFile, sFormat, argptr); sSourceFile.Flush(); va_end(argptr); return (retval); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to implement printf like functions
by Zaxo (Archbishop) on Aug 29, 2005 at 06:44 UTC | |
|
Re: How to implement printf like functions
by sk (Curate) on Aug 29, 2005 at 06:46 UTC | |
|
Re: How to implement printf like functions
by fmerges (Chaplain) on Aug 29, 2005 at 08:23 UTC | |
by Tanktalus (Canon) on Aug 29, 2005 at 14:12 UTC | |
by fmerges (Chaplain) on Aug 29, 2005 at 18:07 UTC |