From 19ceb35c719ca192bff105dbffdae73d0dcdaab9 Mon Sep 17 00:00:00 2001 From: Sparchatus Date: Wed, 23 Mar 2022 10:06:14 +0000 Subject: [PATCH] Hello World should print all its arguments --- usr/hello/hello.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr/hello/hello.c b/usr/hello/hello.c index f836ad3..7da2450 100644 --- a/usr/hello/hello.c +++ b/usr/hello/hello.c @@ -21,5 +21,11 @@ int main(int argc, char *argv[]) { printf("Hello, world! from userspace\n"); + + printf("argv:\n"); + for(int i = 0; i < argc; ++i) { + printf(" %d -> %s\n", i, argv[i]); + } + return EXIT_SUCCESS; }