commit f9028fa2f85773cbf4dba9b08aab38f9d84f5b6c
parent ff7d84a222c59a1f67c7ffc6fd64706d93d6a222
Author: 5hif7y <[email protected]>
Date: Mon, 30 Dec 2024 18:33:40 -0300
6 echo
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/app/main.c b/app/main.c
@@ -30,6 +30,8 @@ int main() {
} else if(!strcmp(input, "exit 0")){
//printf("Exiting...\n");
running = false;
+ } else if(!strncmp(input, "echo", strlen("echo"))){
+ printf("%s\n", input + 5);
} else {
printf("%s: command not found\n", input);
}