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/greet.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wk2/lect/greet.c (limited to 'wk2/lect/greet.c') diff --git a/wk2/lect/greet.c b/wk2/lect/greet.c new file mode 100644 index 0000000..ccecd7d --- /dev/null +++ b/wk2/lect/greet.c @@ -0,0 +1,10 @@ +#include +#include + +//argc is argument count, ie how many arguments were given +//argv is an array of the arguments given +//argv[0] is the command that calls the script, ie ./greet +int main(int argc, string argv[]) +{ + printf("hello, %s\n", argv[1]); +} -- cgit v1.2.3