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!we13!ihnp4!fortune!rpw3
From: rpw3@fortune.UUCP
Newsgroups: net.unix-wizards
Subject: Re: Please use NULL instead of 0 wheneve - (nf)
Message-ID: <2473@fortune.UUCP>
Date: Tue, 7-Feb-84 23:07:36 EST
Article-I.D.: fortune.2473
Posted: Tue Feb  7 23:07:36 1984
Date-Received: Fri, 10-Feb-84 01:00:38 EST
Sender: notes@fortune.UUCP
Organization: Fortune Systems, Redwood City, CA
Lines: 28

#R:ttds:-15100:fortune:11600057:000:582
fortune!rpw3    Feb  7 20:05:00 1984

We have here the argument between

	1. The "right" way -- cast the pointer as an arg
	2. The "easy" way -- cast the 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