Skip to content

Instantly share code, notes, and snippets.

View motiejus's full-sized avatar

Motiejus Jakštys motiejus

View GitHub Profile
@ifreund
ifreund / flags.zig
Last active January 8, 2023 16:07
Zero allocation argument parsing for unix like systems (zig 0.10)
// Zero allocation argument parsing for unix-like systems.
// Released under the Zero Clause BSD (0BSD) license:
//
// Copyright 2023 Isaac Freund
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF