summaryrefslogtreecommitdiff
path: root/wk2/lect/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk2/lect/status.c')
-rw-r--r--wk2/lect/status.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/wk2/lect/status.c b/wk2/lect/status.c
new file mode 100644
index 0000000..ebce04c
--- /dev/null
+++ b/wk2/lect/status.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <cs50.h>
+
+int main(int argc, string argv[])
+{
+ if (argc != 2)
+ {
+ printf("Missing command-line argument\n");
+ return 1;
+ }
+ else
+ {
+ printf("hello, %s\n", argv[1]);
+ return 0;
+ }
+}