fn dupeZ(allocator: Allocator, comptime T: type, m: []const T) ![:0]T
Copies m to newly allocated memory, with a null-terminated element. Caller owns the memory.
m
allocator: Allocator,
T: type,
m: []const T,