A
Anders Andersen
Hi,
I have a question about about the use og va_start, va_arg, va_end, ...
I'm trying to pass a variable argument list from one function to
another, but I can't get it to work. My code looks someting like this:
int func_one(char *arg, ...) {
va_list ap;
va_start(ap, arg);
...
/* call func_two with the same arguments as func_one was called */
func_two(arg, ap);
...
va_end(ap);
}
int func_two(char *arg, ...) {
...
}
Can anybody help me with this? Is it possible at all?
/Anders.
I have a question about about the use og va_start, va_arg, va_end, ...
I'm trying to pass a variable argument list from one function to
another, but I can't get it to work. My code looks someting like this:
int func_one(char *arg, ...) {
va_list ap;
va_start(ap, arg);
...
/* call func_two with the same arguments as func_one was called */
func_two(arg, ap);
...
va_end(ap);
}
int func_two(char *arg, ...) {
...
}
Can anybody help me with this? Is it possible at all?
/Anders.