Page 1 of 1

C functions

Posted: Tue Mar 11, 2003 1:14 pm
by LOneWoolF
Hi, i've a little question concerning C-Programming:

How exactly do i "enable"/create the "..." argument in C? I can't use it if I don't define it... How do I create such an argument list?
Are there docs for this? because I can't find any...
And ONLY with sources, "i stay stupid" *gg*

Re:C functions

Posted: Tue Mar 11, 2003 1:34 pm
by Therx
Can't remember exactly off hand but you may want to google for these macros:-
[0]va_start
[0]va_arg
[0]va_end
[0]va_list (type defined as unsigned char*)

Re:C functions

Posted: Tue Mar 11, 2003 1:36 pm
by Whatever5k
You want to have a look at the va_xxx (va_start, va_arg, va_end) functions.
See stdarg.h