This commit is contained in:
Anton Dolozin 2025-11-09 18:47:38 +01:00
parent 6d387b8bb4
commit 990262eea3

View File

@ -79,8 +79,7 @@ int main(void){
while( fgets(line, sizeof(line), stdin)){
line[strcspn(line, "\n")] = '\0';
if(line[0] == '\0'){
if(strcmp(line, "\n") == 0){
whitespace = true;
break;
}
@ -88,14 +87,8 @@ int main(void){
}
int numOfLeaves = count_leaves(tree);
char answer[SIZE];
char existence_line[SIZE];
bool exs = false;
fgets(existence_line, SIZE, stdin);
if(existence_line[0]){
bool exs = true;
}
printf("Expert z bufetu to vie.\n");
if(!tree || !whitespace || !exs){
if(!tree || !whitespace){
printf("Chybna databaza\n");
return 0;
}