Hi, I realized that some functions can take an undefined number of parameters, and I was wondering how I could achieve that. To give an example, printf() can have a variable lenght of parameters, and if you look at its prototype, it looks like this:
Code:
int printf(const char*, ...)
So I decided to "try" to build a function that would accept as many parameters as possible. So I could write this, but after that, I still don't know how to deal with the parameters!
Code:
void func(...)
{
    //???
}
I know that I can't try with "...[0]" for accessing a parameter, but there has to be a way...