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);