Re: Variable number of arguments
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Thu, 22 Feb 2007 20:29:22 -0800
Richard Maine wrote:
Note also that on some systems, you can't get by with just ignoring
extra arguments in C, even if they are on the end. It messes up the
stack or some such thing. I recall having problems with that on some Sun
systems. You actually have to have the arguments agree, even if you end
up not using some of them.
The ... is C's indication for a variable number of arguments.
One would have to read the C rules carefully for that case, but
I believe if you have declared it that way it has to work even if
you don't use all of them.
-- glen
.
- References:
- Variable number of arguments
- From: salgerman
- Re: Variable number of arguments
- From: Richard Maine
- Re: Variable number of arguments
- From: salgerman
- Re: Variable number of arguments
- From: salgerman
- Re: Variable number of arguments
- From: Richard Maine
- Variable number of arguments
- Prev by Date: Re: Variable number of arguments
- Next by Date: Re: reading lines with trailing white spaces
- Previous by thread: Re: Variable number of arguments
- Next by thread: Re: Variable number of arguments
- Index(es):
Relevant Pages
|