diff --git a/cv3/program.c b/cv3/program.c index fdc3c32..68f8026 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -16,6 +16,10 @@ int main(){ char vstup[STACK_SIZE]; int counter = 0; while(1){ + if(counter > 10){ + printf("full stack\n"); + return 0; + } if (fgets(vstup, sizeof(vstup), stdin) == NULL) { printf("no input\n"); return 0;