Hello World should print all its arguments

This commit is contained in:
Sparchatus 2022-03-23 10:06:14 +00:00
parent 6c74f8fd18
commit 19ceb35c71

View File

@ -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;
}