C functions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
LOneWoolF

C functions

Post 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*
Therx

Re:C functions

Post 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*)
Whatever5k

Re:C functions

Post by Whatever5k »

You want to have a look at the va_xxx (va_start, va_arg, va_end) functions.
See stdarg.h
Post Reply