fromStringz

Returns new string formed from C-style (null-terminated) string msg. Usefull when interfacing with C libraries. For D-style to C-style convertion use std.string.toStringz *

string
fromStringz
nothrow
(
const char* msg
)

Examples

   char[] cstring = "some string".dup ~ cast(char)0;
*
   assert(fromStringz(cstring.ptr) == "some string");

Meta