Re: Memo on coding practices: strcmp() does not yield bool

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Memo on coding practices: strcmp() does not yield bool
Дата
Msg-id 39657385.C7209972@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: Memo on coding practices: strcmp() does not yield bool  (JanWieck@t-online.de (Jan Wieck))
Список 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 по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: DateStyle (was Re: Per-database/schema settings)
Следующее
От: Karel Zak
Дата:
Сообщение: Re: build system