Re: Memo on coding practices: strcmp() does not yield bool - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Memo on coding practices: strcmp() does not yield bool
Date
Msg-id 39657385.C7209972@alumni.caltech.edu
Whole thread Raw
In response to Re: Memo on coding practices: strcmp() does not yield bool  (JanWieck@t-online.de (Jan Wieck))
List pgsql-hackers
My experience has been the same as Tom's (only perhaps more so, he
didn't actually admit to being confused by "if (strcmp(...))" :)

I've always been uncomfortable with that "implicit zero", and have been
confused more than once by code which does not include the "= 0" or "!=
0". When I'm modifying code, I usually will add this stuff in.
                     - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: DateStyle (was Re: Per-database/schema settings)
Next
From: Karel Zak
Date:
Subject: Re: build system