1 #include <stdio.h> 2 3 void setlinebuf(FILE * f)4 setlinebuf(FILE *f) 5 { 6 static char buf[BUFSIZ]; 7 8 setvbuf (f, buf, _IOLBF, BUFSIZ); 9 } 10