summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-10-02 15:50:57 +0100
committerTom Hacohen <tom@stosb.com>2013-10-02 15:51:02 +0100
commit9c620dc8401af7912a08a63bc48189980c315029 (patch)
tree9f24fee0d8bc9edb2c72ecf3f0a3cf56f7d82d33
parent43c4dfb556541277972aa419a54fb7bdc9e5ed12 (diff)
Created the initial version. Can print arg 0 and arg 1.
-rw-r--r--main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..6101175
--- /dev/null
+++ b/main.c
@@ -0,0 +1,11 @@
1#include <stdio.h>
2
3int
4main(int argc, char *argv[])
5{
6 printf("arg 1: %s\n", argv[0]);
7 if (argc >= 2)
8 printf("arg 2: %s\n", argv[1]);
9
10 return 0;
11}