hello: now with args
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user