diff options
| author | Manlio Perillo <manlio.perillo@gmail.com> | 2026-06-06 17:39:42 +0200 |
|---|---|---|
| committer | Manlio Perillo <manlio.perillo@gmail.com> | 2026-06-06 17:39:42 +0200 |
| commit | 72a441a6bdeb40c423807e047496f02b4511c4a5 (patch) | |
| tree | 5be066f66847fa079d4823995195ec3873d70dbc /exercises/040_pointers2.zig | |
| parent | 6aaf04893561140a1262c2dccf0736ef645352a4 (diff) | |
Improve command line style
Parse the command line following the code from the Zig compiler cli.
Use the args iterator instead of slice, and use while instead of for
loop.
Use the new std.mem.cutPrefix instead of the custom function prefix.
Move Context struct to the top.
Diffstat (limited to 'exercises/040_pointers2.zig')
0 files changed, 0 insertions, 0 deletions
