How to handle char* to string from C functions?

Adam D. Ruppe destructionator at gmail.com
Thu Jan 2 07:53:39 PST 2014


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.


More information about the Digitalmars-d-learn mailing list