Please use NULL instead of 0 wheneve - (nf)
rpw3 at fortune.UUCP
rpw3 at fortune.UUCP
Wed Feb 8 14:07:36 AEST 1984
#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
More information about the Comp.unix.wizards
mailing list