Interfacing to C. extern (C) variables

Robert Clipsham robert at octarineparrot.com
Sun Jun 26 14:28:24 PDT 2011


On 26/06/2011 20:54, Alex_Dovhal wrote:
> I'd like to call C functions and use C variables in D module.
> D calls C functions just fine, but how can I use C variables?

extern(C) extern int myCVar;

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d-learn mailing list