stringIDup

Duplicates a zero-terminated string with malloc, return a string. Equivalent to .idup Has to be cleaned-up with free(). Note: The zero-terminating byte is preserved. This allow to have a string which also can be converted to a C string with .ptr. However the zero byte is not included in slice length.

nothrow @nogc
string
stringIDup
(
const(char)* cstr
)

Meta