Mail Archives: djgpp/1995/05/15/04:04:12
> S DOT B DOT M DOT Verstege AT research DOT ptt DOT nl (Stefan Verstege) wrote:-
>> I have written a function that must accept [a] variable [amount of]
[snip]
>
> On PC djgpp (not necessarily on other computers) it works like this:-
>/*-----*/
>int myfunction(int nargs,...){long int*p = (long int*)&nargs;
>
>/* The array p now contains all the arguments. p[0] = nargs. The rest of the
>arguments are in order left to right in the array p, each taking up as many
You should really use the va_start(), va_args(), etc. macros defined in
ANSI C, and in GCC's header files.
--
- Antony Suter <antony AT werple DOT mira DOT net DOT au>
- (Rohaan) <s871780 AT minyos DOT xx DOT rmit DOT edu DOT au>
- "In space, all warriors are Code warriors", Chang, ST6
- Raw text -