This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Native interface question.
- To: David Pettersson <dapet at mai dot liu dot se>
- Subject: Re: Native interface question.
- From: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Date: Tue, 11 May 1999 08:10:06 +0200
- Cc: egcs at cygnus dot com
- References: <Pine.OSF.4.00.9905101321200.12626-100000@bloodgood.mai.liu.se>
- Reply-To: martin dot kahlert at mchp dot siemens dot de
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?