This commit is contained in:
Illia Korpan 2026-04-15 09:19:14 +02:00
parent ff3ca252ad
commit 4e39b0e0e9

View File

@ -127,7 +127,7 @@ int main(void) {
printf("%s\n", cur->text);
if (!fgets(buf, sizeof(buf), stdin)) {
printf("Nerozumiem\n");
break;
return 0;
}
char *p = buf;
while (*p && isspace((unsigned char)*p)) p++;
@ -138,9 +138,10 @@ int main(void) {
cur = cur->no;
} else {
printf("Nerozumiem\n");
break;
return 0;
}
}
printf("Koniec\n");
free_tree(root);
for (int i = 0; i < lines_count; ++i) free(lines[i]);