This commit is contained in:
Bohdan Kapliuk 2024-10-12 16:31:42 +03:00
parent 9300c574c6
commit ca9061ea52

View File

@ -16,6 +16,10 @@ int main(){
char vstup[STACK_SIZE]; char vstup[STACK_SIZE];
int counter = 0; int counter = 0;
while(1){ while(1){
if(counter > 10){
printf("full stack\n");
return 0;
}
if (fgets(vstup, sizeof(vstup), stdin) == NULL) { if (fgets(vstup, sizeof(vstup), stdin) == NULL) {
printf("no input\n"); printf("no input\n");
return 0; return 0;