fn realpath(pathname: []const u8, out_buffer: *[MAX_PATH_BYTES]u8) RealPathError![]u8

Return the canonicalized absolute pathname. Expands all symbolic links and resolves references to ., .., and extra / characters in pathname. The return value is a slice of out_buffer, but not necessarily from the beginning. See also realpathZ and realpathW.

Parameters

pathname: []const u8,
out_buffer: *[MAX_PATH_BYTES]u8,