string fromCString(const(char) * cstr)
Converts a null-terminated C string to a D string (copying the data).
cstr
null