Access Violation when passing the result of a C function directly to a D function?
    Timothy Foster via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Sep 15 16:31:37 UTC 2017
    
    
  
On Friday, 15 September 2017 at 10:33:55 UTC, Vadim Lopatin wrote:
> On Friday, 15 September 2017 at 04:01:13 UTC, Timothy Foster 
> wrote:
>> [...]
>
> Probably you have to use const char * msg when interfacing with 
> C. string is a struct - size_t length and const char * value
The string doesn't touch any C functions, it just gets printed in 
the writeln() call.
    
    
More information about the Digitalmars-d-learn
mailing list