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]

Re: Native interface question.


Quoting David Pettersson (dapet@mai.liu.se):
> 
> Hi,
> 
> I hope this is not the wrong place to ask this question.
> I want to make a piece of C++ code that calls a C function with an
> previously unknown number of arguments (e.g. scanf). The number of
> arguments that are sent to the C function is calculated in the C++
> function it is called from. Is there some way to do this, like sending an
> array instead or something?

Perhaps i didn't understand correctly, but perhaps
'man va_arg' would help.

Bye,
Martin.

-- 
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?


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