From d832de78627e09605cdd54ba1007405946f47e6a Mon Sep 17 00:00:00 2001 From: Kozar Date: Sun, 13 Oct 2024 09:36:47 +0000 Subject: [PATCH] Initializacia --- cv3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 82de3a0..00adfe3 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -67,7 +67,7 @@ void perform_operation(struct stack* s, char* operator) { result = a / b; } else { printf("Chyba: neplatna operacia\n"); - exit(1); + exit(0); } push_stack(s, result); @@ -92,7 +92,7 @@ int main() { else { printf("bad input\n"); - return 1; + return 0; } print_stack(&mystack);