From a2682d25c6cd0e069ff73a43df74c17a63caabac Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:59:23 +0000 Subject: Sat, Feb 17, 2024, 2:59 PM -08:00 --- wk2/lect/status.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 wk2/lect/status.c (limited to 'wk2/lect/status.c') 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 +#include + +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; + } +} -- cgit v1.2.3