strdup

Duplicate a zero terminate C string.

char*
strdup
(
const(char)* s
)

Parameters

s const(char)*

The zero terminated string to duplicate

Return Value

Type: char*

The duplicate string

Throws

OutOfMemoryError