stdarg
Dave Eisen
dkeisen at Gang-of-Four.Stanford.EDU
Thu Feb 7 11:31:10 AEST 1991
In article <1704 at bbxsda.UUCP> scott at bbxsda.UUCP (Scott Amspoker) writes:
>In article <1991Feb6.171144.7182 at Neon.Stanford.EDU> dkeisen at Gang-of-Four.Stanford.EDU (Dave Eisen) writes:
>>Probably a reasonable decision. But it does make it a pain to deal
>>with the third party software we use that is full of <varargs.h> functions
>>that can take 0 or more arguments.
>
>Just curious: How does such a function know whether it was called with
>0 or 1 argument without the aid of some external flag? Sounds like a
>botched up interface to me.
It can't. But there is an external flag --- a global variable that is
used to specify what calling convention will be used. It's not the
world's prettiest interface, but I really don't have any problems with
it.
--
Dave Eisen "If I wanted to be a diplomat, I would
1447 N. Shoreline Blvd. have joined the foreign service."
Mountain View, CA 94043 --- my girlfriend to her boss
(415) 967-5644 dkeisen at Gang-of-Four.Stanford.EDU (for now)
More information about the Comp.lang.c
mailing list