Added comments and help commands to user apps

This commit is contained in:
iDunnoDev
2023-01-13 17:37:43 +00:00
committed by iDunnoDev
parent c23d669858
commit f74cebc12d
11 changed files with 197 additions and 55 deletions

11
hello.c
View File

@ -1,7 +1,18 @@
#include "types.h"
#include "user.h"
// User app that was from one of the tutorial but i have since changed it to provide useful information about the current process and console
int main(int argc, char *argv[]) {
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "-help") == 0)
{
printf(1, "Does a system call that returns the current process and console information, used for debugging.\n");
exit();
return 0;
}
}
greeting();
exit();
}