Function next [src]

Prototype

pub fn next(self: *ArgIteratorPosix) ?[:0]const u8

Parameters

self: *ArgIteratorPosix

Source

pub fn next(self: *ArgIteratorPosix) ?[:0]const u8 { if (self.index == self.count) return null; const s = std.os.argv[self.index]; self.index += 1; return mem.sliceTo(s, 0); }