August 03, 2004 _argptr to C function | ||||
---|---|---|---|---|
| ||||
I think my inexperience with C's got the best of me on this one. I've got a function: public void parse(char[] format, ...); I want to take the variable arguments and feed them to an extern(C) function. I've tried: xmlrpc_parse_value(&xmlrpcClient.env, realValue, toStringz(format),_argptr); But although it doesn't output an error, it also doesn't appear to work. This does however: xmlrpc_parse_value(&xmlrpcClient.env, realValue, toStringz(format),va_arg!(char**)(_argptr)); If I've only got one char** argument. How do I do what I'm trying to do? TIA John |
Copyright © 1999-2021 by the D Language Foundation