Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!novavax!proxftl!bill From: bill@proxftl.UUCP (T. William Wells) Newsgroups: comp.lang.c Subject: Re: How do you write portable programs? Message-ID: <753@proxftl.UUCP> Date: 13 Sep 88 18:07:35 GMT References: <1056@nmtsun.nmt.edu> <2515@ingr.UUCP> <13467@mimsy.UUCP> Reply-To: bill@proxftl.UUCP (T. William Wells) Organization: Proximity Technology, Ft. Lauderdale Lines: 20 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <13467@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: : In article <2515@ingr.UUCP> jones@ingr.UUCP (Mark Jones) writes: : >Instead of using NULL, use ZERO, and don't worry about casting it. Having seen NULL abused so often, I have decided on a new slogan: "NULL, just say NO!" On an assignment, always use 0. In a function call, always cast a 0 to the appropriate type. Hey Chris, do you think we should combine our missives (mine is <402@proxftl.UUCP>) into an article for news.announce.newusers? We might get it into the "most frequently asked questions" section under the title "NULL considered harmful!" :-) I think. --- Bill novavax!proxftl!bill