Path: utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: passing variable numbers of arguments Keywords: varargs assert() nargs() Message-ID: <9381@smoke.BRL.MIL> Date: 14 Jan 89 18:00:34 GMT References: <899@thor.stolaf.edu> <15341@mimsy.UUCP> <449@marob.MASA.COM> <9317@smoke.BRL.MIL> <11378@haddock.ima.isc.com> <9321@smoke.BRL.MIL> <11410@haddock.ima.isc.com> <9358@smoke.BRL.MIL> <202@mstan.Morgan.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <202@mstan.Morgan.COM> dff@Morgan.COM (Daniel F. Fisher) writes: >Since arrays cannot be passed by value in C, I fail to see how this >is relevant. I wasn't talking about array ARGUMENTS. sizeof returns the size of an object when used as a member of an array. This is not necessarily the same as the number of bytes needed when used as an argument, due to possibly different alignment requirements in the two cases. In fact, some arguments in some implementations are passed in fast registers! >What to do? What to do? Not to worry about va_nargs(). It's not useful enough to be worth the hassle.