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 standard library. Public Function
relativePosix
Public Function
std.fs.path.relativePosix
pubfnrelativePosix(allocator: Allocator, cwd: []constu8, from: []constu8, to: []constu8) Allocator.Error![]u8
Returns the non-absolute path from from to to according to Windows rules.
Other than memory allocation, this is a pure function; the result solely depends on the input parameters.
If from and to each resolve to the same path (after calling resolve on each), a zero-length string is returned.
Returns the non-absolute path from
fromtotoaccording to Windows rules.Other than memory allocation, this is a pure function; the result solely depends on the input parameters.
If
fromandtoeach resolve to the same path (after callingresolveon each), a zero-length string is returned.