Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!uw-entropy!dataio!gtenmc!fst From: fst@gtenmc.UUCP (Fariborz "Skip" Tavakkolian) Newsgroups: comp.unix.wizards Subject: How does a VARARGS function call another VARARGS function? Keywords: VARARGS Message-ID: <439@gtenmc.UUCP> Date: 18 Jan 90 01:52:24 GMT Organization: GTE Telecom Inc., Bothell, WA Lines: 30 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@mcgp1 -or- fst@gtenmc