[comp.lang.c++] <stdarg.h> and func

shankar@hpclscu.HP.COM (Shankar Unni) (09/19/89)

The AT&T 2.0 documentation seems to allow function definitions of the form

int foo(...)
{
    // pick up the arguments somehow
}

However, it has also changed the "va_start" macro to conform to the ANSI C
standard, which requires va_start to take a second parameter ("the last
fixed parameter").

How is one supposed to use "va_start" on a function of the above form?
If one can't, is there any reason for allowing this construct (since there
is no portable way of accessing its parameters)? (There used to be
"varargs.h", but that seems to have vanished with 2.0).
-----
Shankar Unni                                   E-Mail: 
Hewlett-Packard California Language Lab.     Internet: shankar@hpda.hp.com
Phone : (408) 447-5797                           UUCP: ...!hplabs!hpda!shankar