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:
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!
int printf(const char*, ...)
I know that I can't try with "..." for accessing a parameter, but there has to be a way...