using the '...' in the argument list

Started by
0 comments, last by darkawakenings 20 years, 9 months ago
I was just wondering how I could use the ellipses to accept an unlimited amount of arguments with a function. I tried void func(char aaa, char aab, ...); and it compiled fine, but now if I pass four variables to it, i don''t know how to access the other two. Thanks in advance!
Advertisement
look up va_list and va_arg in your msdn, or check it out online at [big url]

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt_va_arg.2c_.va_end.2c_.va_start.asp

This topic is closed to new replies.

Advertisement