varargs
Per Andersson
d90-pan at sm.luth.se
Thu Feb 7 09:12:16 AEST 1991
I have a big problem using the varargs library.
What I want to do is to write a function that takes a variable number of
arguments and simply passes them on to another function like this:
a_func( va_alist )
va_dcl
{
...
b_func( va_alist );
...
};
With this definition I would be able to write something like:
a_func( "Hello world!", 42, &buf, 0 );
wich would result in b_func being called whith the same arguments.
Unfortunatley, this doesn't work to well.
The only thing I want to do is to pass ALL arguments on to b_func. It should
work like an indirect call to b_func.
Please help me!
By the way, I'm using a Sun 3-60 with SunOs V4.
| Per Andersson | c/o Boman | Voice natl. 0920 - 164 47 |
| University of Luleaa | Kungsgatan 16 | intl. +46 920 164 47 |
| SWEDEN | S-951 32 Luleaa | Internet: d90-pan at sm.luth.se |
More information about the Comp.lang.c
mailing list