Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Private Function

scriptCommandLine

Private Function
std.Io.Threaded.WindowsCommandLineCache.scriptCommandLine
fn scriptCommandLine(self: *WindowsCommandLineCache, script_path: []const u16) ![:0]u16

Not cached, since the path to the batch script will change during PATH searching. script_path should be as qualified as possible, e.g. if the PATH is being searched, then script_path should include both the search path and the script filename (this allows avoiding cmd.exe having to search the PATH again).

Params

File

Io/Threaded.zig:16702
16702
16703
16704
16705
16706
16707
16708
16709
16710
    fn scriptCommandLine(self: *WindowsCommandLineCache, script_path: []const u16) ![:0]u16 {
        if (self.script_cmd_line) |v| self.allocator.free(v);
        self.script_cmd_line = try argvToScriptCommandLineWindows(
            self.allocator,
            script_path,
            self.argv[1..],
        );
        return self.script_cmd_line.?;
    }