string from C function

Dejan Lekic dejan.lekic at gmail.com
Wed May 7 22:28:32 UTC 2025


On Wednesday, 7 May 2025 at 22:23:36 UTC, Andy Valencia wrote:
> 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.

https://dlang.org/library/std/string/from_stringz.html

for the opposite see 
https://dlang.org/library/std/string/to_stringz.html


More information about the Digitalmars-d-learn mailing list