Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!shelby!neon!Gang-of-Four!dkeisen From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) Newsgroups: comp.lang.c Subject: Re: stdarg Message-ID: <1991Feb6.171144.7182@Neon.Stanford.EDU> Date: 6 Feb 91 17:11:44 GMT References: <1991Feb5.145001.26837@hounix.uucp> <588@taumet.com> Sender: news@Neon.Stanford.EDU (USENET News System) Organization: Sequoia Peripherals Lines: 19 In article <588@taumet.com> steve@taumet.com (Stephen Clamage) writes: >pelliott@hounix.uucp (Paul Elliott) writes: >|In ansi C, is there a way to have a function with a variable argument list >|and zero fixed parameters? If so what would one use for the second parameter >|to va_start, which is normally supposed to be the last fixed parameter? > >Not in ANSI C. The method requires at least one fixed argument. 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. -- 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)