diff options
Diffstat (limited to 'wk2/lect2/status.c')
-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]); + } +} |