ImportC and nothrow/@nogc?
Dukc
ajieskola at gmail.com
Mon Aug 26 14:47:39 UTC 2024
Manu kirjoitti 25.8.2024 klo 19.58:
> There's no value in writing a whole function wrapper to automate a call
> to toStringz().
> I'm not even sure that call is actually unsafe anyway. toStringz() isn't
> unsafe...?
Well, `toStringz` copies the string to append a zero. Besides, `fopen`
takes char pointers, not arrays, unlike `toStringz`. So this would
compile: `fopen(new char('u'), new char('b'))` .
More information about the Digitalmars-d
mailing list