coding style for who.c
Jason Schoon
floydpink at gmail.com
Sun Mar 12 15:39:00 UTC 2006
I prefer this construct as well, and lint requires it if you are using
that. (Note: I'm not trying to start any further religious coding-style
debates, nor push lint, it just happens to be a tool that helps me often and
thus I like styles that work well with it).
On 3/11/06, Paul Fox <pgf at brightstareng.com> wrote:
please don't do that -- it just hides a common coding bug. but i
> agree that the second style above isn't clearer. to avoid the warning
> and keep it readable, i'd suggest the following, which breaks up
> the parentheses and makes it more obvious what's going on.
> if ((a = strchr(str,'-')) != 0 );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060312/9bb41022/attachment.htm
More information about the busybox
mailing list