toStringz

Convert array of chars to a C-style 0 terminated string. Providing a tmp will use that instead of the heap, where appropriate.

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)
    inout(char)*
    toStringz
    (
    inout(char)[] s
    ,
    char[] tmp = null
    )
  2. inout(char)*[] toStringz(char[] tmp, inout(char)*[] dst, inout(char)[][] strings)

Meta