On Tue, Oct 30, 2001 at 11:02:56AM +0300, Alexander V. Lukyanov wrote:
> > Originally, I used memmove/memchr for speed--they're well-optimized.  In
> > retrospect, that's also iterating over the input buffer twice (though in
> > a cache-friendly way.)
> >
> > Here's one that anyone can understand:
> 
> This one is nicer indeed. And smaller. It has a bug but it does not matter.

Er, what is it?  Passed my tests (leading, trailing, consecutive \r\n
with or without null terminator.)

-- 
Glenn Maynard

Reply via email to