setvbuf(..., _IOLBF, ...) to make sure lines get read right away - ploot - simp… | |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit d7624d60484f10f1473317b508ff481b8acc1ae9 | |
parent 98e410eed716d9673c93a5a6f133905df23e8cc3 | |
Author: Josuah Demangeon <[email protected]> | |
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(-) | |
--- | |
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("|"); |