string from C function

Andy Valencia dont at spam.me
Wed May 7 22:23:36 UTC 2025


I feel dumb, because this can't be as elusive as it feels.

I'm calling a C library function, and getting a char * (null 
terminated).

Now I want it to be a D string.  What's the right way to do this? 
  Performance and memory use are not important; I just want a 
simple and idiomatic way to get from point A to point B.

TIA,
Andy



More information about the Digitalmars-d-learn mailing list