diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-20 22:00:41 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-20 22:00:41 +0200 |
commit | 4fc2c86bc6a8fd4c00173c637868311bb254fdb7 (patch) | |
tree | ca9fb2d1f7e1c74ebca46da1ebd96655ce04f2d6 | |
parent | a37b4fc119836c05aeb57b1578750ef4c058230a (diff) |
Make use of ‘setlinebuf()’
-rw-r--r-- | bilingual_sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bilingual_sort.c b/bilingual_sort.c index 0ea5e0c..870e3da 100644 --- a/bilingual_sort.c +++ b/bilingual_sort.c @@ -22,7 +22,7 @@ main(void) line[256]; /* We need line buffering to make gawk interact with this properly */ - setvbuf(stdout, NULL, _IOLBF, 0); + setlinebuf(stdout); setlocale(LC_ALL, ""); while (true) { |