fromStringz

fnstring fromStringz(const(char) * cstr) @trusted pure nothrow

Converts a null-terminated C string to a D string.

Parameters

cstrPointer to the null-terminated C string

Returns

A D string copy of the C string, or an empty string if input is null