toStringz

Convert a series of char[] to C-style 0 terminated strings, using tmp as a workspace and dst as a place to put the resulting char*'s. This is handy for efficiently converting multiple strings at once.

Returns a populated slice of dst

Warning, don't read from the memory pointed to in the tmp variable after calling this function.

  1. inout(char)* toStringz(inout(char)[] s, char[] tmp)
  2. inout(char)*[] toStringz(char[] tmp, inout(char)*[] dst, inout(char)[][] strings)
    inout(char)*[]
    toStringz
    (
    char[] tmp
    ,
    inout(char)*[] dst
    ,
    inout(char)[][] strings...
    )

Meta

Since

0.99.7