D - How to interface with vararg C functions?
- Luna Kid (9/9) Apr 17 2003 This is an incomplete porting of a C interface:
- Burton Radons (2/10) Apr 17 2003 This is how it should be done.
- Luna Kid (3/13) Apr 18 2003 Thanks!
This is an incomplete porting of a C interface: extern (C) { char* f1 (char* fmt, va_list argp); // just use void*? char* f2 (char* fmt, ...); // perhaps OK as is } How to correctly do it? (I haven't found any clue in the docs. under the "Functions" heading.) Thanks, Lunar Szabi
Apr 17 2003
Luna Kid wrote:This is an incomplete porting of a C interface: extern (C) { char* f1 (char* fmt, va_list argp); // just use void*? char* f2 (char* fmt, ...); // perhaps OK as is }This is how it should be done.
Apr 17 2003
Thanks! "Burton Radons" <loth users.sourceforge.net> wrote in message news:b7o06c$1oun$1 digitaldaemon.com...Luna Kid wrote:This is an incomplete porting of a C interface: extern (C) { char* f1 (char* fmt, va_list argp); // just use void*? char* f2 (char* fmt, ...); // perhaps OK as is }This is how it should be done.
Apr 18 2003