Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!ihnp4!fortune!rpw3 From: rpw3@fortune.UUCP Newsgroups: net.unix-wizards Subject: Re: Please use NULL instead of 0 wheneve - (nf) Message-ID: <2477@fortune.UUCP> Date: Wed, 8-Feb-84 04:05:19 EST Article-I.D.: fortune.2477 Posted: Wed Feb 8 04:05:19 1984 Date-Received: Fri, 10-Feb-84 01:34:41 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 28 #R:ttds:-15100:fortune:11600060:000:602 fortune!rpw3 Feb 7 20:11:00 1984 We have here the argument between 1. The "right" way -- cast the NULL pointer when used as an arg 2. The "easy" way -- cast the NULL pointer as a define may I suggest 3. The "easy/right" way -- define a NULL for each type, as in #define NULL 0 #define NULLint (int) NULL #define NULLchar (char) NULL #define NULLxyz_type (xyz_type)NULL Then val = foo(x, y, NULLchar, z); Isn't that easy to type? (**groan**) :-) Rob Warnock UUCP: {sri-unix,amd70,hpda,harpo,ihnp4,allegra}!fortune!rpw3 DDD: (415)595-8444 USPS: Fortune Systems Corp, 101 Twin Dolphins Drive, Redwood City, CA 94065