Function joinZ [src]
Naively combines a series of paths with the native path separator and null terminator.
Allocates memory for the result, which must be freed by the caller.
Prototype
pub fn joinZ(allocator: Allocator, paths: []const []const u8) ![:0]u8
Parameters
allocator: Allocator
paths: []const []const u8
Source
pub fn joinZ(allocator: Allocator, paths: []const []const u8) ![:0]u8 {
const out = try joinSepMaybeZ(allocator, sep, isSep, paths, true);
return out[0 .. out.len - 1 :0];
}