Subj : varargs(ish) To : comp.programming From : pemo Date : Sat Aug 20 2005 06:18 pm I'd like to write a C function that can accept variable args *and* a fixed arg that tells the function whether to output to stdout and optionally, a file. So, I want something like this ... void out(int outputType, const char * format, ...) { switch(outputType) { case 1: fprintf(logFile, format, ????); // Fall Through. case 2; printf(format, ????); break; default: break; } The question is, what do I put for the ???? please!? .