Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!shelby!neon!Gang-of-Four!dkeisen From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) Newsgroups: comp.lang.c Subject: Re: stdarg Message-ID: <1991Feb7.003110.14017@Neon.Stanford.EDU> Date: 7 Feb 91 00:31:10 GMT References: <588@taumet.com> <1991Feb6.171144.7182@Neon.Stanford.EDU> <1704@bbxsda.UUCP> Sender: news@Neon.Stanford.EDU (USENET News System) Organization: Sequoia Peripherals Lines: 22 In article <1704@bbxsda.UUCP> scott@bbxsda.UUCP (Scott Amspoker) writes: >In article <1991Feb6.171144.7182@Neon.Stanford.EDU> dkeisen@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 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@Gang-of-Four.Stanford.EDU (for now)