Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!chem.ucsd.edu!tps From: tps@chem.ucsd.edu (Tom Stockfisch) Newsgroups: comp.lang.c Subject: Re: varargs question Keywords:Message-ID: <256@chem.ucsd.EDU> Date: 16 Jul 88 02:30:17 GMT References: <161@neti1.uucp> Reply-To: tps@chem.ucsd.edu (Tom Stockfisch) Organization: Chemistry Dept, UC San Diego Lines: 22 In article <161@neti1.uucp> bdr@neti1.uucp (Brian Renaud) writes: X... I am using a non-ansi type compiler. X ... X char *(*func)(); /* local variable to hold pointer */ X ... X func = va_arg(ap, char *(*)()); XUnfortunately, va_arg turns the cast into something like: X (char *(*)() *) ... Xinstead of the desired: X (char *(**)() ) ... X...workaround? try typedef char *(*PFPC)(); ... func = va_arg( ap, PFPC ); -- || Tom Stockfisch, UCSD Chemistry tps@chem.ucsd.edu