string[] to char**

simendsjo simendsjo at gmail.com
Sat Mar 24 03:46:10 PDT 2012


On Fri, 23 Mar 2012 22:42:08 +0100, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> On 3/23/12, bearophile <bearophileHUGS at lycos.com> wrote:
>> This is one way to do it:
>>      immutable(char)** p = array(map!toStringz(data)).ptr;
>
> This is asked so frequently that I think we could consider adding it to  
> Phobos.

Yes. The first thing I tried was to!(char**)(strings), but that didn't work


More information about the Digitalmars-d-learn mailing list