I want to have a function with variable arguments. my question whether the variable arguments will be stored automatically in va_list (or) I have to store it. for example.
int calculate(int arg1, int arg2, va_list v1);
calculate(int arg1, int arg2, int arg3, int arg4);
the question is whether if I call calculate like above, whether the arguments arg3 & arg4 will be stored automatically in valist (or) I have to store it by myself before calling it.
Actually I don't to store the valist myself. your sugesstions are welcomed.
P R A T H A P