Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: varargs -> varargs mystery Message-ID: <16068@smoke.brl.mil> Date: 6 May 91 20:30:37 GMT References: <1991May2.170148.12655@sparky.IMD.Sterling.COM> <4606@skye.ed.ac.uk> <3110@cirrusl.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <3110@cirrusl.UUCP> Rahul Dhesi writes: >Briefly, the question was: if A and B are varags functions, how can >one portably write them so that A uses one argument and passes the rest >to B? The short answer is: you can't. Sure you can, but you have to pass the remaining arguments via a va_list parameter, not scattered about. I do this all the time.