I am using the following conditional statement to read from standard input.
if ((n = read(0,buf,sizeof(buf))) != 0)
When inputting data fro
I'm quite positive there's no way to do it without examining the buffer contents. Even readline() does just that. Why are you opposed to it, anyways?