Path: utzoo!utgpu!cunews!dgbt!netfs.dnd.ca!rutgers!psuvax1!wuarchive!zazen!uwvax!margay.cs.wisc.edu!dws From: dws@margay.cs.wisc.edu (DaviD W. Sanderson) Newsgroups: comp.lang.c Subject: Re: stdarg Message-ID: <1991Feb6.213648.23885@spool.cs.wisc.edu> Date: 6 Feb 91 21:36:48 GMT References: <1991Feb5.145001.26837@hounix.uucp> <588@taumet.com> <1991Feb6.171144.7182@Neon.Stanford.EDU> Sender: news@spool.cs.wisc.edu (The News) Distribution: na Organization: U of Wisconsin CS Dept Lines: 21 In article <1991Feb6.171144.7182@Neon.Stanford.EDU> Dave Eisen writes: >In article <588@taumet.com> Stephen Clamage writes: >>Paul Elliott writes: >>|In ansi C, is there a way to have a function with a variable argument list >>|and zero fixed parameters? >>Not in ANSI C. The method requires at least one fixed argument. >...[we use] third party software [...] that is full of functions >that can take 0 or more arguments. Hmm. How would a function decide that it was called with no arguments? It is not always possible to determine the number of arguments by examining the stack frame. Perhaps your third-party software relies on being able to extract this information from the stack frame? That *would* be a pain! -- ___ / __\ U N S H I N E DaviD W. Sanderson | | | I N E dws@cs.wisc.edu _____| | |_____ ________ \ / \ |__/ /////__ Fusion Powered Locomotives Made to Order \____/ \__|_/ \\\\\______ (TARDIS model available at extra cost)