From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ef4b8bc112693c34 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-15 21:07:33 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.centerline.com!noc.near.net!atria.com!jtk From: jtk@atria.com (John T. Kohl) Subject: Re: va_list on OSF1/DEC C compiler In-Reply-To: jin@gracie.lbl.gov's message of 15 Dec 1993 19:58:01 GMT Message-ID: Followup-To: comp.unix.osf.osf1 Sender: news@atria.com Nntp-Posting-Host: 192.88.237.83 Organization: Atria Software, Inc. References: <2enq89$bqp@overload.lbl.gov> Date: Thu, 16 Dec 1993 01:51:10 GMT It looks like you're confusing and style variatic function declaration rules. You probably want to use the style variatic functions (the ANSI C versions), which means something like: void xxprint(int err, char *s, ...) { va_list vl; va_start(vl, s); arg1 = va_arg(vl, type1); arg2 = va_arg(vl, type2); ... va_end(vl); } -- John Kohl or working for but not representing: Atria Software --------- What are you pretending not to know?