| Thread overview | |||||
|---|---|---|---|---|---|
|
April 17, 2003 How to interface with vararg C functions? | ||||
|---|---|---|---|---|
| ||||
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
| ||||
April 18, 2003 Re: How to interface with vararg C functions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Luna Kid | 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.
| |||
April 18, 2003 Re: How to interface with vararg C functions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Burton Radons | 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. > | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply