toString

Returns a D string copy of a zero terminated C style string

immutable(T)[]
toString
pure
(
T
)
(
in const(T)* str
)
if (
is(T == dchar) ||
is(T == wchar)
||
is(T == char)
)

Parameters

str
Type: const(T)*

The C style string to convert

Return Value

Type: immutable(T)[]

The D style string copy.

Meta