fromStringz

fninout(Char)[] fromStringz(Char)(return scope inout(Char) * cString) if (isSomeChar!Char) @nogc @system pure nothrow

Parameters

cStringA null-terminated c-style string.

Returns

A D-style array of char, wchar or dchar referencing the same

string. The returned array will retain the same type qualifiers as the input.

Important

Note

The returned array is a slice of the original buffer.

The original data is not changed and not copied.

fninout(Char)[] fromStringz(Char)(return scope inout(Char)[] cString) if (isSomeChar!Char) @nogc @safe pure nothrow

ditto