Function copy
Make an copy of a string in unmanaged memory
T[] copy(T)
(
T[] b
);
Example
auto str = "hello" .dup;
auto c = copy(str);
assert(c == str);
Delete(c);
Make an copy of a string in unmanaged memory
T[] copy(T)
(
T[] b
);
auto str = "hello" .dup;
auto c = copy(str);
assert(c == str);
Delete(c);