diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-17 22:59:23 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-17 22:59:23 +0000 |
commit | a2682d25c6cd0e069ff73a43df74c17a63caabac (patch) | |
tree | bc5621a5a4b99495a64e41d2407cc5cde22061de /wk2/lect/status.c | |
parent | d3c2d73736cc188e7ad089bfb29d42bf29faf881 (diff) |
Sat, Feb 17, 2024, 2:59 PM -08:00
Diffstat (limited to 'wk2/lect/status.c')
-rw-r--r-- | wk2/lect/status.c | 16 |
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; + } +} |