How does a VARARGS function call another VARARGS function?
Fariborz "Skip" Tavakkolian
fst at gtenmc.UUCP
Thu Jan 18 12:52:24 AEST 1990
I think I have tried everything, though not sure. The problem looks like
this:
void error_function_1(file, line, errorlevel, fmt, va_alist)
char *file, *fmt, *errorlevel;
int line;
va_dcl
{
va_list args;
/* do stuff */
error_function_2(errorlevel, fmt, args);
/* do stuff */
va_end();
}
/* error_function_2 is another VARARGS function which uses vfprintf
* for further processing
*/
Short of doing the ugly _arg1, _arg2, _arg3, ..., _arg1001, etc... is there
a ``right'' way of doing this?
Many thanks.
Skip
--
----------------------------------------------------------------------------
Fariborz "Skip" Tavakkolian -of- Automated Cellular Engineering
Currently consulting -at- GTE Telecom, Inc. Bothell, Wa
Mail: tiny1!fst at mcgp1 -or- fst at gtenmc
More information about the Comp.unix.wizards
mailing list