Date: Thu, 07 Mar 2002 06:59:08 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: obrien@FreeBSD.ORG Cc: Garance A Drosihn <drosih@rpi.edu>, Mike Meyer <mwm-dated-1015843484.1eabc5@mired.org>, hackers@FreeBSD.ORG Subject: Re: RFC: style(9) isn't explicit about booleans for testing. Message-ID: <52204.1015480748@critter.freebsd.dk> In-Reply-To: Your message of "Wed, 06 Mar 2002 19:22:34 PST." <20020306192234.B55297@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020306192234.B55297@dragon.nuxi.com>, "David O'Brien" writes: >Implies??? I thought I was quite explicit: > > to prevent is "if (!strcmp(a,b))" which when read is extremely wrong of > that is actually happening. > >! is pronounced "NOT". When read "if not string compare a with b then do X", >is the opposite of the the logic of the expression does. Which is >"if string compare a with b is equal then do X". ["if (strcmp(a,b) == 0)"] Well, we're clearly into "IMO" land here, so lets ignore that :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52204.1015480748>