There are many examples on the web on how to use fully buffered/unbuffered streams using the setvbuf utility. However, I am struggling with the line-buffer