variable number of arguments

Doug Gwyn gwyn at brl-smoke.ARPA
Sun Feb 28 15:17:39 AEST 1988


In article <1078 at pasteur.Berkeley.Edu> dheller at cory.Berkeley.EDU.UUCP (Dan Heller) writes:
>I refute that claiming that it shouldn't be necessary to worry about it.

But since in fact it is necessary to worry about it, that's not a good
refutation.

>A good compiler will pass the arguments correctly and the architecture
>should be completely transparent to the programmer.

Sorry, in order for the architecture to be "transparent" across all
systems, you have to use varargs as I said.

>Declaring the _known_ arguments makes the code more easily linted and
>more easily understood by others readers.

Which doesn't do much good if it won't run.



More information about the Comp.lang.c mailing list