diff options
Diffstat (limited to 'arg.h')
-rw-r--r-- | arg.h | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -1,14 +1,9 @@ -/* - * Copy me if you can. - * by 20h - */ - -#ifndef ARG_H__ -#define ARG_H__ +// Copyright 2024 @waffle87 +// SPDX-License-Identifier: MIT/X +#pragma once extern char *argv0; -/* use main(int argc, char *argv[]) */ #define ARGBEGIN \ for (argv0 = *argv, argv++, argc--; \ argv[0] && argv[0][0] == '-' && argv[0][1]; argc--, argv++) { \ @@ -44,5 +39,3 @@ extern char *argv0; ? (char *)0 \ : (brk_ = 1, (argv[0][i_ + 1] != '\0') ? (&argv[0][i_ + 1]) \ : (argc--, argv++, argv[0]))) - -#endif |