This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling function with va_list


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]