[KLUG Programming] Passing on variable argument lists.

Adam Williams programming@kalamazoolinux.org
Sun, 08 Feb 2004 15:01:56 -0500


> I beleive you want the man page for stdarg. These are macros for 

Headed there now.

> variable-length parameter lists.  Let us know if this is the right thing, it 
> will tell me (and probably others on this list) about what you're doing.

Simply.

1.) I can call C routines from C#/Mono.
2.) The XML-RPC implementation in C#/Mono is broken if you require
authentication.
3.) The xmlrpc-c C implementation of XML-RPC works fine to call XML-RPC
services that require authentication.
4.) So I want to write a single function which I can call from C# and
encapsulares all the C# gew so that I can easily replace it with a
native C# call when it becomes available.
4.1.) And implementing one call-to-C is easier than several and a whole
bunch of structs.

But the XML-RPC calls obviously take variable numbers of arguments,
depending on the call made.  This is handled in C via the ... elipses.