hello: now with args

This commit is contained in:
2025-10-03 23:47:31 +02:00
parent 2f507a2f71
commit d1bea93d07

View File

@@ -1,5 +1,12 @@
#include <stdio.h> #include <stdio.h>
int main() { int main(int argc, int argv[]) {
puts("Hello, world!\r\n"); puts("Hello, world!\r\n");
if (argc > 1) {
return argv[0] + argv[1];
} else if (argc > 0) {
return argv[0];
}
return 0x42;
} }