Apparently, I should have treated it normally, not as an error
This commit is contained in:
parent
2326ca2588
commit
6c9b379822
@ -76,7 +76,7 @@ int main(void){
|
|||||||
|
|
||||||
if(!tree){
|
if(!tree){
|
||||||
printf("Bazu sa nedalo nacitat'.\n");
|
printf("Bazu sa nedalo nacitat'.\n");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
while( fgets(line, sizeof(line), stdin)){
|
while( fgets(line, sizeof(line), stdin)){
|
||||||
line[strcspn(line, "\n")] = '\0';
|
line[strcspn(line, "\n")] = '\0';
|
||||||
@ -88,7 +88,7 @@ int main(void){
|
|||||||
}
|
}
|
||||||
if(!whitespace){
|
if(!whitespace){
|
||||||
printf("No whitespace after database\n");
|
printf("No whitespace after database\n");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
int numOfLeaves = count_leaves(tree);
|
int numOfLeaves = count_leaves(tree);
|
||||||
char answer[SIZE];
|
char answer[SIZE];
|
||||||
@ -124,7 +124,7 @@ int main(void){
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
printf("\nNerozumiem\n");
|
printf("\nNerozumiem\n");
|
||||||
return 1;
|
return 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
destroy_tree(tree);
|
destroy_tree(tree);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user