This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Calling function with va_list
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Jan Ringo¹ <tringi at mx-3 dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: 26 Nov 2004 18:46:40 -0800
- Subject: Re: Calling function with va_list
- References: <000201c4d298$4f1ae0c0$971e9453@merovingian>
Jan Ringo¹ <tringi@mx-3.cz> writes:
> Hello,
>
> may I ask if it is possible to call any function with prepared va_list?
> I mean how can I construct call when I have my own constructed
> va_list, pointer in form "int (*func)()" to function e.g. "int
> func(int a, int b, int c)".
> Maybe "__builtin_apply" could solve this problem, but I am unable to
> find any information about how to build arguments to this function
> (something similar that __builtin_apply_args returns but in my own).
> Thanks for any ideas?
You want the libffi library, which is provided with gcc but is not
part of the compiler itself.
> PS: How can I register to get all e-mails from this maillist? I am not
> even sure if this is maillist :)
You really want the gcc-help@gcc.gnu.org mailing list. This list is
about how to write GCC, not how to use it.