Cleanup Base: fetch

Matthew Dillon dillon at apollo.backplane.com
Tue Jan 4 15:44:20 PST 2005


:Isn't it better to use the '\0' to make it clear it's a character?
:style(9) says this:
:
:     Do not use ! for tests unless it is a boolean, e.g. use
:
:     if (*p == '\0')
:
:     not
:
:     if (!*p)
:
:Of course it ends up being personal preference, but anyway, just curious.
:
:Andre

    Something like '\n' at least has some readability value, but
    '\0' doesn't, really.  Or at least, not much.

    I guess it's personal preference, I could go either way but I
    would tend to just use 0.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Submit mailing list