aaaaaaaaaaaaaaa
This commit is contained in:
parent
f33f8f19ef
commit
2d62bcc415
@ -65,13 +65,15 @@ int main() {
|
||||
|
||||
char buffer[256];
|
||||
if (!fgets(buffer, sizeof(buffer), stdin)) {
|
||||
printf("Chyba pri nacitani bazy pravidiel.\n");
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Chybna databaza\n");
|
||||
free_tree(root);
|
||||
return 0;
|
||||
}
|
||||
buffer[strcspn(buffer, "\r\n")] = '\0';
|
||||
if (strlen(buffer) != 0) {
|
||||
printf("Chyba pri nacitani bazy pravidiel.\n");
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Chybna databaza\n");
|
||||
free_tree(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user