On Tuesday, 9 February 2016 at 12:50:27 UTC, Jakob Ovrum wrote:
writefln et al sensibly does *not* assume that a pointer to
char is a C string, for memory safety purposes.
Print the result of std.string.fromStringz[1] instead:
writeln(fromStringz(pString));
writefln("%s", fromStringz(pString));
[1] http://dlang.org/phobos/std_string#fromStringz
Or use `to` like this:
import std.conv;
writefln("%s", pString.to!(string));
