Calling C functions that modify a string

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu Jun 15 14:04:36 UTC 2023


On Thursday, June 15, 2023 7:18:06 AM MDT Steven Schveighoffer via 
Digitalmars-d-learn wrote:
> But in general, if you want a mutable character array that's zero
> terminated, you need to make a copy with a zero terminator, but type it
> as mutable. I'm surprised there isn't a way to do this easily in the
> library.

https://dlang.org/phobos/std_utf.html#toUTFz

- Jonathan M Davis





More information about the Digitalmars-d-learn mailing list