toStringz

Returns a pointer to a C style string created from a D string type

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

Parameters

str immutable(T)[]

The D style string to convert.

Return Value

Type: const(T)*

the C style string pointer.

Meta