原文
.fromStringz函数:

import std.string : fromStringz;
char *buf = some_c_function();
writeln(buf.fromStringz);

注意,fromStringz@nogc的.