Path: utzoo!attcan!uunet!tektronix!zeus!teklds!daniels From: daniels@teklds.TEK.COM (Scott Daniels) Newsgroups: comp.lang.c Subject: Re: Variable argument lists. Summary: is too... Message-ID: <3085@teklds.TEK.COM> Date: 14 May 88 01:08:24 GMT References: <14139@brl-adm.ARPA> <3569@ece-csc.UUCP> <3080@teklds.TEK.COM> <300@teletron.UUCP> Reply-To: daniels@teklds.UUCP (Scott Daniels) Followup-To: comp.lang.c Organization: Tektronix, Inc., Beaverton, OR. Lines: 16 In article <300@teletron.UUCP> andrew@teletron.UUCP (Andrew Scott) writes: >In article <3080@teklds.TEK.COM>, daniels@teklds.TEK.COM (Scott Daniels)writes: >> C, however, requires >> that providing too many arguments to a function not be a problem. >Is this true, or just a fluke thing that works under many C implementations? K&R (original) 4.3 (page 71, paragraph 4): "It is generally safe to deal with a variable number of arguments if the called function doesn't use an argument which was not actually supplied, and if the types are consistent". I take that as a constraint when writing a C compiler. Often there are more efficient ways of passing parameters (such as callee cleans up stack), but that is not "the C way". -Scott Daniels daniels@teklds.UUCP or daniels@teklds.TEK.COM