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