how to do with stdarg? va
how to do with stdarg? va
int main(int argc, char* argv[])
There are argc parameters (including the name of the prog). They range from 0 to argc-1 in char* argv[].
There's no way.Originally posted by Wraith_Master
how to do with stdarg? va
Either predefine an argument which signals the end of the list, have the first argument set to the number of arguments you're passing or do something similar to the printf family of functions.
http://www.eskimo.com/~scs/C-faq/q15.8.html