From: jtk@atria.com (John T. Kohl)
Subject: Re: va_list on OSF1/DEC C compiler
Date: Thu, 16 Dec 1993 01:51:10 GMT [thread overview]
Message-ID: <CI3uHB.Iw0@atria.com> (raw)
In-Reply-To: jin@gracie.lbl.gov's message of 15 Dec 1993 19:58:01 GMT
It looks like you're confusing <stdarg.h> and <varargs.h> style variatic
function declaration rules.
You probably want to use the <stdarg.h> 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 <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing: Atria Software
---------
What are you pretending not to know?
next prev parent reply other threads:[~1993-12-16 1:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-15 19:58 va_list on OSF1/DEC C compiler Guojun Jin[ITG]
1993-12-16 1:51 ` John T. Kohl [this message]
1993-12-20 3:29 ` Christos Zoulas
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox