Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!aw0g+ From: aw0g+@andrew.cmu.edu (Aaron Wohl) Newsgroups: comp.lang.c Subject: Re: Varargs problem Message-ID: Date: 25 Aug 89 23:10:03 GMT References: <4YxPuc200VsnE_B3Jy@andrew.cmu.edu> Organization: Computing Systems, Carnegie Mellon, Pittsburgh, PA Lines: 20 In-Reply-To: <4YxPuc200VsnE_B3Jy@andrew.cmu.edu> Bobg, As a rabid varargs user, I can attest to the wonders of never giving anything fancy to varags. Always use a typedef. How about: #include typedef (*int_func)(); void mumble(va_alist) va_dcl { va_list ap; int_func fn; va_start(ap); fn=va_arg(ap,int_func); frotz(fn); } Aaron