From b35831b69129c85770d107d17adfb5fc9e95f24e Mon Sep 17 00:00:00 2001 From: Kozar Date: Sun, 13 Oct 2024 09:46:30 +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 f536259..88a101b 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -24,7 +24,7 @@ void print_stack(struct stack* s) { void push_stack(struct stack* s, float value) { if (s->size >= STACK_SIZE) { - printf("Chyba: zasobnik je plny\n"); + printf("full stack\n"); exit(0); } s->values[s->size++] = value; @@ -32,7 +32,7 @@ void push_stack(struct stack* s, float value) { float pop_stack(struct stack* s) { if (s->size == 0) { - printf("Chyba: zasobnik je prazdny\n"); + printf("empty stack\n"); exit(0); } return s->values[--s->size];