How do I access the paramaters entered after param1?
Like this:
void foo(param1, ...);
How do I access the ... part?
Why do you wanna access it?
You pass parameters to functions, you dont access them.
What?
This is what I wanna do:
void print_something(const char *val, ...)
{
//the val part can have things like this in it:
//%1, %2 and so forth, and then those parts get replaced by the paramaters after that.. so I wanna know how to get them.
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.