From 4fc2c86bc6a8fd4c00173c637868311bb254fdb7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 20 Sep 2023 22:00:41 +0200 Subject: Make use of ‘setlinebuf()’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bilingual_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bilingual_sort.c') 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) { -- cgit v1.2.3