On 5/5/16 3:36 PM, Steven Schveighoffer wrote:
Only thing I can think of is.. um... horrible:

char *toCharz(string s)
{
    auto cstr = s.toStringz;
    return cstr[0 .. s.length + 1].dup.ptr;
}

Ignore this. What Jonathan said :)

-Steve

Reply via email to