fromCString

fnstring fromCString(const(char) * cstr) pure nothrow

Converts a null-terminated C string to a D string (copying the data).

Parameters

cstrPointer to the null-terminated C string.

Returns

A D string, or null if the input pointer was null.