setvbuf(..., _IOLBF, ...) to make sure lines get read right away - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit d7624d60484f10f1473317b508ff481b8acc1ae9
(DIR) parent 98e410eed716d9673c93a5a6f133905df23e8cc3
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Mon, 7 May 2018 02:51:37 +0200
setvbuf(..., _IOLBF, ...) to make sure lines get read right away
Diffstat:
M plootxt.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/plootxt.c b/plootxt.c
@@ -228,6 +228,7 @@ main(int argc, char **argv)
int ncol, nmax;
char *labv[LINE_MAX / 2], labels[LINE_MAX];
+ setvbuf(stdin, NULL, _IOLBF, 0);
nmax = parse_args(argc, argv, max);
ncol = read_labels(labv);
width = (wflag - sizeof("XXxXXxXX _")) / ncol - sizeof("|");