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.
The C string to convert.
Example
char[] cstring = "some string".dup ~ cast(char)0; assert(cstring.ptr.fromStringz == "some string"); assert(null.fromStringz == "");
See Implementation
NCrashed
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.