Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!akshay From: akshay@cbnewsm.att.com (akshay.kumar.deshpande) Newsgroups: comp.lang.c Subject: Variable arguments to & from functions. Message-ID: <1991Jun17.205314.25401@cbnewsm.att.com> Date: 17 Jun 91 20:53:14 GMT Organization: AT&T Bell Laboratories Lines: 36 I am trying to write a variable argument function which in turn calls another variable argument function. Can anybody tell me how to pass the unknown arguments I receive to the next function. Here is a psuedo example: A(int arg1, ...) { . . va_start(ap, fmt); /* from K&R 2nd edition - p 156 */ . B(arg1, arg2, arg3, <...>); . } B(int arg1, int arg2, int arg3, ...); { . . . } I would like to have the "..." of A match that for the function call of B. -akshay speedy@att.att.com (908) 957-3252