Initializacia

This commit is contained in:
Kozar 2024-11-12 12:09:54 +00:00
parent c015a63349
commit 72e5b20347

View File

@ -55,7 +55,7 @@ void run_tree(struct tree* tree) {
printf("Koniec vstupu\n"); printf("Koniec vstupu\n");
return; return;
}else if (response != 'a' && response != 'n') { }else if (response != 'a' && response != 'n') {
if (scanf(" %c", &response) != 1) { if (feof(stdin)) {
printf("Chybna databaza\n"); printf("Chybna databaza\n");
} else { } else {
printf("Nerozumiem\n"); printf("Nerozumiem\n");