string[] to char**

bearophile bearophileHUGS at lycos.com
Sat Mar 24 04:11:17 PDT 2012


simendsjo:

> Oh, I didn't find toStringz, so I turned it into:

It's in std.string.

> auto c_strings = strings.map!(toUTFz!(char*)).array().ptr;

That's wrong syntax, that 2.059head doesn't enforce yet, map needs an ending ().


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list