I'm working on wrapping a C library that has a function that can handle a
variable number of parameters.  What mechanism can I use in FPC to call
this correctly?

The C prototype for the function looks like this:

void QMCall(char * subrname, short int argc, ...);

The function can handle up to 20 parameters after the 'argc' parameter.
Would I have to define all 20 possible parameters?  Each of the optional
parameters is a string type.

Thanks for the help!

g.


-- 
"I'm not crazy, I'm plausibly off-nominal!"

Proud owner of 80-0007
http://www.f15sim.com - The only one of its kind.



_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to