Path: utzoo!attcan!uunet!lll-winken!arisia!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: How do a write portable programs? Message-ID: <374@quintus.UUCP> Date: 9 Sep 88 11:13:59 GMT References: <1056@nmtsun.nmt.edu> <2515@ingr.UUCP> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 11 In article <2515@ingr.UUCP> jones@ingr.UUCP (Mark Jones) writes: >Instead of using NULL, use ZERO, and don't worry about casting it. This is a joke, right? Yes, it works for assignment to variables, but it is _not_ good for passing to functions without prototypes! >Do not rely on the size of anything. If there is a need for a 32-bit >number, do it like this: > >#if sizeof(int) == 4 Now I *know* it's a joke! "sizeof" is not legal in #if.