diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-05 05:20:42 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-05 05:20:42 +0000 |
commit | 206960f4c48dc05b34fe2cc8f838c06c265dd73a (patch) | |
tree | 3d27d6eb94d08e30c5e8c55c3192089cbd9bc0b0 /wk2/lect2 | |
parent | d1a1a5a9205d709874890a06c2197d7154a64b91 (diff) |
Mon, Dec 4, 2023, 9:20 PM -08:00
Diffstat (limited to 'wk2/lect2')
-rw-r--r-- | wk2/lect2/status.c | 14 |
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]); + } +} |