[ILUG-BOM] Buggy C prog

Philip S Tellis philip@[EMAIL-PROTECTED]
Fri Sep 27 11:54:28 IST 2002


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 good when you're doing a non-blocking read (using select).


-- 
I'm killing time while I wait for life to shower me with meaning and
happiness.	  
		-- Calvin





More information about the Linuxers mailing list