fromCString

Convert a C string to a D string, with parameter to consume (free) the C string with g_free().

string
fromCString
(
const(char)* cstr
,
Flag!"Free" free
)

Parameters

cstr const(char)*

Zero terminated C string

free Flag!"Free"

Yes.Free to free the C string with g_free, No.Free to just copy it

Return Value

Type: string

The D string copy