du6 - 23
This commit is contained in:
parent
f654def9d1
commit
3c9a53fbdb
@ -69,11 +69,15 @@ int run_system(Tree *node) {
|
|||||||
|
|
||||||
char c[10];
|
char c[10];
|
||||||
printf("%s\n", node->value);
|
printf("%s\n", node->value);
|
||||||
if (fgets(c, sizeof(c), stdin) == NULL) {
|
while (1) {
|
||||||
printf("Koniec vstupu\n");
|
if (fgets(c, sizeof(c), stdin) == NULL) {
|
||||||
return 0;
|
printf("Koniec vstupu\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
strip_newline(c);
|
||||||
|
|
||||||
|
if (strlen(c) != 0) break;
|
||||||
}
|
}
|
||||||
strip_newline(c);
|
|
||||||
|
|
||||||
if (!node->left && !node->right) {
|
if (!node->left && !node->right) {
|
||||||
printf("Koniec vstupu\n");
|
printf("Koniec vstupu\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user