What exactly are the String literrals in D and how they work?

rempas rempas at tutanota.com
Sun Aug 15 08:56:07 UTC 2021


On Sunday, 15 August 2021 at 08:53:50 UTC, Tejas wrote:
> External C libraries expect strings to be null terminated, so 
> if you do use `.dup`, use `.toStringz` as well.

Yeah, yeah I got that. My question is, if I should avoid 
`cast(char*)` and use `.toStringz` while both do the exact same 
thing?


More information about the Digitalmars-d-learn mailing list