I am trying to efficiently read from the stdin by using setvbuf in `_IOFBF~ mode. I am new to buffering. I am looking for working examples
stdin
setvbuf
Mabe also take a look at this getline implementation:
http://www.cpax.org.uk/prg/portable/c/libs/sosman/index.php
(An ISO C routine for getting a line of data, length unknown, from a stream.)