Re: Variable number of arguments



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

.



Relevant Pages

  • WTB: Standalone Digital-to-analog converter
    ... Someone here was selling a stack of Lucid gear that I seem to recall ... included a D-A converter, ...
    (rec.audio.pro)
  • Re: Kernel Calling Conventions
    ... Regs vs stack is a much closer argument for userspace ... For kernel transitions, registers are _much_ ... I don't recall whether these are ... The main advantage of stack params is that many more ...
    (comp.lang.asm.x86)
  • Re: HP49G Sysrpl help with recalling contents of pointers
    ... I wish to recall the contents of e.g. C%SIN to the stack ... during runtime (in order to modify the composite) and then use it. ... Where PTR 0FEDA splits a C% into two extended reals. ... In this case I already have two extended reals on the stack, ...
    (comp.sys.hp48)
  • Re: debugging a multi-threaded program on linux.
    ... > If you use GNU C I'm certain there is a way to get a sort of stack ... > trace. ... I recall a thread about it. ...
    (comp.unix.programmer)
  • Re: Processor-dependent constants
    ... Richard Maine wrote: ... > recall one off the top of my head. ... > I doubt you will go wrong by guessing that. ...
    (comp.lang.fortran)