fn realpathAlloc(allocator: Allocator, pathname: []const u8) ![]u8

realpath, except caller must free the returned memory. See also Dir.realpath.

Parameters

allocator: Allocator,
pathname: []const u8,