aboutsummaryrefslogtreecommitdiff
path: root/module-test/argument_printer.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-08 12:31:17 +0000
committer_ov4 <ov4@ov4.org>2026-09-08 12:31:17 +0000
commit02e7e15bdc8f36f08e90f69096a4cb93006885e8 (patch)
treedcc8211fe64c7c530208ceade2220fa77d439193 /module-test/argument_printer.cc
parentbb39c49a0dbfd0ee05ec5ac3bba96916b175fa92 (diff)
add argument helper
Diffstat (limited to 'module-test/argument_printer.cc')
-rw-r--r--module-test/argument_printer.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/module-test/argument_printer.cc b/module-test/argument_printer.cc
new file mode 100644
index 0000000..8b8c6c3
--- /dev/null
+++ b/module-test/argument_printer.cc
@@ -0,0 +1,13 @@
+// print all arguments
+// $ g++ module-test/argument_printer.cc -std=c++23
+
+#include <iostream>
+
+using namespace std;
+
+int main(int argc, char **argv)
+{
+ for (int i = 0; argv[i] != nullptr; i++)
+ cout << argv[i] << endl;
+ return 0;
+}