passing variable numbers of arguments

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Jan 15 04:00:34 AEST 1989


In article <202 at mstan.Morgan.COM> dff at 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.



More information about the Comp.lang.c mailing list