summaryrefslogtreecommitdiff
path: root/wk2/lect2/status.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-05 05:20:42 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-05 05:20:42 +0000
commit206960f4c48dc05b34fe2cc8f838c06c265dd73a (patch)
tree3d27d6eb94d08e30c5e8c55c3192089cbd9bc0b0 /wk2/lect2/status.c
parentd1a1a5a9205d709874890a06c2197d7154a64b91 (diff)
Mon, Dec 4, 2023, 9:20 PM -08:00
Diffstat (limited to 'wk2/lect2/status.c')
-rw-r--r--wk2/lect2/status.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/wk2/lect2/status.c b/wk2/lect2/status.c
new file mode 100644
index 0000000..1c7142a
--- /dev/null
+++ b/wk2/lect2/status.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <cs50.h>
+
+int main(int argc, string argv[])
+{
+ if (argc != 2)
+ {
+ printf("Missing command-line argument\n");
+ }
+ else
+ {
+ printf("hello, %s\n", argv[1]);
+ }
+}