aboutsummaryrefslogtreecommitdiff
path: root/arg.h
diff options
context:
space:
mode:
Diffstat (limited to 'arg.h')
-rw-r--r--arg.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/arg.h b/arg.h
index 2f8bd07..039a187 100644
--- a/arg.h
+++ b/arg.h
@@ -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