pointer checking

John P. Nelson jpn at teddy.UUCP
Thu Feb 18 03:39:23 AEST 1988


In article <228 at gandalf.littlei.UUCP> martin at littlei.UUCP (martin) writes:
>I do not want to start another net wars, but I am tired of seeing
>people write programs that are non-portable between C compilers.

Please, people, DON'T followup to this.  This subject was hashed
to death in comp.lang.c.  The construct cited in the article
" if (ptr) { do something }". is both valid and 100% portable, at least
according to both Kernigan and Richie, and the proposed ANSI standard.
Perhaps Martin has a buggy compiler that will not accept this construct,
but all correct C compilers handle it as written.



More information about the Comp.sources.bugs mailing list