[PATCH] setup.exe: Stop NetIO_HTTP from treating entire stream as a header
Sun Oct 21 16:20:00 GMT 2001
On Wed, 2001-11-28 at 05:42, Christopher Faylor wrote:
> >Ah, better yet. Jeez you guys are clever ;-). But how about we make it:
> > while (((l = s->gets ()) != 0) && (*l != '\0'))
> >in the interest of making it a bit more self-documenting?
> Actually, how about not using != 0. Use NULL in this context.
> I don't think that *l is hard to understand, fwiw.
I think *l is ok. As for 0 vs NULL, in C++ NULL is deprecated, 0 is the
correct test for an invalid pointer.
More information about the Cygwin-patches