diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-07-19 20:27:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-07-19 20:27:52 +0200 |
| commit | 9f08f4173cf0680410b7eb95e5b32000d56320d0 (patch) | |
| tree | 6eed6c13d90b16620cf438f32cb319f17d594e06 /scripts/alg | |
| parent | f1df9088d8def50febfe3af2597a94c027348879 (diff) | |
| download | config-9f08f4173cf0680410b7eb95e5b32000d56320d0.tar.gz config-9f08f4173cf0680410b7eb95e5b32000d56320d0.zip | |
Fix stdout flushing
Diffstat (limited to 'scripts/alg')
| -rwxr-xr-x | scripts/alg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/alg b/scripts/alg index 54839b4..99becd8 100755 --- a/scripts/alg +++ b/scripts/alg | |||
| @@ -471,9 +471,9 @@ int edit(struct node *n) { | |||
| 471 | int d = 1; | 471 | int d = 1; |
| 472 | if (!is_terminal(n)) { | 472 | if (!is_terminal(n)) { |
| 473 | printf("Confirm delete node "); | 473 | printf("Confirm delete node "); |
| 474 | fflush(stdout); | ||
| 475 | write_key(stdout, n->child[i].key); | 474 | write_key(stdout, n->child[i].key); |
| 476 | printf("? [y/N] "); | 475 | printf("? [y/N] "); |
| 476 | fflush(stdout); | ||
| 477 | fgets(line, LINEMAXLEN, stdin); | 477 | fgets(line, LINEMAXLEN, stdin); |
| 478 | d = line[0] == 'y' || line[0] == 'Y'; | 478 | d = line[0] == 'y' || line[0] == 'Y'; |
| 479 | } | 479 | } |
