You don't need the macros if all the variable parameters are the same type,
for example CharPtr. This is a very standard C language technique.
int foo (int count, CharPtr p1, ...) {
CharPtr *pPtr = &p1;
int i;
for ( i = 0 ; i < count && *pPtr != NULL ; i++) {
CharPtr ptr = pPtr[i];
...................... // process each parameter in turn....
}
return i;
}
However, the macros look more elegant, which is one reason they exist.
Roger Stringer
Marietta Systems, Inc.
>From: Gaurav Palvia <[EMAIL PROTECTED]>
>To: palm-dev-forum <[EMAIL PROTECTED]>
>Sent: Monday, November 08, 1999 6:57 AM
>Subject: is there anything by which we can pass variable no of arguments to
>a function
> hi pals,
>
> is there anything by which we can pass variable no of arguments to a
> function.The standard vm_list ,vm_start macros are not supported
> in the code warrior c compiler
>
>