How to handle char* to string from C functions?

monarch_dodra monarchdodra at gmail.com
Thu Jan 2 07:58:24 PST 2014


On Thursday, 2 January 2014 at 15:53:40 UTC, Adam D. Ruppe wrote:
> On Thursday, 2 January 2014 at 15:31:25 UTC, bearophile wrote:
>> If you know that you have N strings, then a solution is 
>> (untested):
>
> Or if it is zero terminated, maybe
>
> pp.until!"a is null".map!text.array
>
>
> Though personally I'd just use the plain old for loop.

0-terminated arrays of non-strings :puke:


More information about the Digitalmars-d-learn mailing list