codecrafters-shell-c

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit b83accbbd5c9a9239fe9138966e6dc5662559a1d
parent 8225c3a8bb79fe3309b6e87f52ce2c7f21f5641d
Author: 5hif7y <[email protected]>
Date:   Mon, 30 Dec 2024 17:53:23 -0300

5 exit 0

Diffstat:
Mapp/main.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/app/main.c b/app/main.c @@ -27,6 +27,9 @@ int main() { if(!strcmp(input, "exit")){ printf("Exiting...\n"); running = false; + } else if(!strcmp(input, "exit 0")){ + printf("Exiting...\n"); + running = false; } else { printf("%s: command not found\n", input); }