From 314d9552336da4eb83e0235939d173433ac8f31c Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Mon, 6 Oct 2025 16:42:01 +0200 Subject: [PATCH] Trying --- du3/program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 8ebc785..305fa21 100644 --- a/du3/program.c +++ b/du3/program.c @@ -2,7 +2,7 @@ #include #include #include -#define STACK_SIZE 10000 +#define STACK_SIZE 10 struct stack{ float values[STACK_SIZE]; @@ -65,6 +65,10 @@ void process_operations(struct stack* stack) { return; } } else { + if(stack->size == STACK_SIZE){ + printf("full stack\n"); + return; + } char *endptr; if (line[0] == '.') { printf("bad input\n");