Is there any way to determine number of parameters sent to this specific function?
Thanks.
Zeljko
There might be an implementation specific way, but there is no way available
within standard C++.
Not unless you cut pin 9 on chip E11 on your M8138 card.
It's incumbant on the programmer to know (or figure out) what
arguments are passed and their type. Putting a NULL or something
at the end is a good way.
Maybe with vararg? Not that I've ever tried...
It might not be a bad idea to try. However, you'll see that
there is no way to determine how many arguments have been passed
unless it's not indicated in the parameters themselves (e.g. the
number of formatting specifications in the string, the first
argument of printf, defines the number of arguments following the
string).
Victor
--
Please remove capital A's from my address when replying by mail
Yes, I thought so....
Thanks to all who've replied.
Zeljko