Convert string[] to char**

Peter Alexander peter.alexander.au at gmail.com
Tue Jun 4 05:27:27 PDT 2013


On Tuesday, 4 June 2013 at 12:20:24 UTC, bearophile wrote:
> David:
>
>> mykeys.map!(x => x.dup.toStringz).array
>
> Is toStringz already dup-ping the buffer?

Not necessarily. IIRC, if the string already has a null 
terminator then it just returns the string ptr. Only dups if it 
needs to.


More information about the Digitalmars-d mailing list