DragonFly submit List (threaded) for 2005-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Cleanup Base: fetch
Matthew Dillon said:
> I'm not sure about the Wiki, I don't manage that, but I committed
> your patch. I did change the '\0' to 0. Thanks for the
> submission!
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]