diff --git a/cv3/program.c b/cv3/program.c index 6bb0d5f..d6dcdad 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -102,7 +102,7 @@ int read(struct stack *s) { } default: printf("bad input\n"); - return 1; // Continue on invalid input + exit(0); // Continue on invalid input } }