What is the fastest way to read input from stdin ?
I tried fread() but when used it does not end the string with '\0' terminator, and the number of read bytes is unknown. It's hard to tame it.
Please share your knowledge.