Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

resolve

On Windows, this calls resolveWindows and on POSIX it calls resolvePosix.

path.resolve
pub fn resolve(allocator: Allocator, paths: []const []const u8) Allocator.Error![]u8

File

lib/std/fs/path.zig:864

Code

pub fn resolve(allocator: Allocator, paths: []const []const u8) Allocator.Error![]u8 {
    if (native_os == .windows) {
        return resolveWindows(allocator, paths);
    } else {
        return resolvePosix(allocator, paths);
    }
}