123
This commit is contained in:
parent
ff3ca252ad
commit
4e39b0e0e9
@ -127,7 +127,7 @@ int main(void) {
|
|||||||
printf("%s\n", cur->text);
|
printf("%s\n", cur->text);
|
||||||
if (!fgets(buf, sizeof(buf), stdin)) {
|
if (!fgets(buf, sizeof(buf), stdin)) {
|
||||||
printf("Nerozumiem\n");
|
printf("Nerozumiem\n");
|
||||||
break;
|
return 0;
|
||||||
}
|
}
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
while (*p && isspace((unsigned char)*p)) p++;
|
while (*p && isspace((unsigned char)*p)) p++;
|
||||||
@ -138,9 +138,10 @@ int main(void) {
|
|||||||
cur = cur->no;
|
cur = cur->no;
|
||||||
} else {
|
} else {
|
||||||
printf("Nerozumiem\n");
|
printf("Nerozumiem\n");
|
||||||
break;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
printf("Koniec\n");
|
||||||
|
|
||||||
free_tree(root);
|
free_tree(root);
|
||||||
for (int i = 0; i < lines_count; ++i) free(lines[i]);
|
for (int i = 0; i < lines_count; ++i) free(lines[i]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user