On Sep 27, 2002 at 11:37, Philip S Tellis wrote:
On Thu, 26 Sep 2002, Satya wrote:
Bah, I should've used fgets() for my parser, instead of reading a character at a time and examining it. Bah. Philip, is my method so horrendous that I should replace it with fgets(), assuming it's not
reading a character at a time is fine if you don't care about bufferring. However, you'll have to take care of backspace yourself.
It's reading from a disk file, so no worries about backspace and such.
It's good when you're doing a non-blocking read (using select).
Whta's good? fgets()?
I'm doing a select()ed read elsewhere. The select call is doing double-duty: waiting for a packet and waiting for a timeout.