What happened to _argptr ?

Lionello Lunesu lio at lunesu.remove.com
Fri Feb 9 00:24:46 PST 2007


Tomas Lindquist Olsen wrote:
> I'm trying to compile a pretty simple C-style variadic function.
> 
> extern(C)
> void error(char* fmt, ...)
> {
>         vprintf(fmt, _argptr);
> }
> 
> This gives the error:
> Error: undefined identifier _argptr
> 
> According to http://digitalmars.com/d/function.html this should at least
> compile.
> 
> Whats up?

You need std.c.stdarg for C functions.

L.



More information about the Digitalmars-d mailing list