Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!husc6!panda!teddy!jpn From: jpn@teddy.UUCP (John P. Nelson) Newsgroups: comp.sources.bugs Subject: Re: pointer checking Keywords: 16 bits vs 32 bits Message-ID: <4626@teddy.UUCP> Date: 17 Feb 88 17:39:23 GMT References: <228@gandalf.littlei.UUCP> Reply-To: jpn@teddy.UUCP (John P. Nelson) Organization: GenRad, Inc., Concord, Mass. Lines: 10 In article <228@gandalf.littlei.UUCP> martin@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.