Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ncoast.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!cwruecmp!atvax!ncoast!bsa From: bsa@ncoast.UUCP (Brandon Allbery) Newsgroups: net.lang.c Subject: Re: runtime 'sizeof()'? Message-ID: <584@ncoast.UUCP> Date: Tue, 5-Feb-85 23:48:52 EST Article-I.D.: ncoast.584 Posted: Tue Feb 5 23:48:52 1985 Date-Received: Sat, 9-Feb-85 08:53:55 EST References: <33@gitpyr.UUCP> <800002@acf4.UUCP> Reply-To: bsa@ncoast.UUCP (Brandon Allbery) Organization: North Coast Programming, Cleveland Lines: 17 Summary: As to the null pointer controversy, I've taken to using a derivative of the technique Larry Wall uses in rn for all but the quick, sloppy ultra-local (TRS-Xenix) programs: #define Null(type) ((type *) 0) ... if ((fp = fopen(filename, "r")) == Null(FILE)) ... You get the idea. Easy to use and it makes the point (pun not intended) evident. --bsa -- Brandon Allbery @ decvax!cwruecmp!ncoast!bsa (..ncoast!tdi1!bsa business) 6504 Chestnut Road, Independence, Ohio 44131 +1 216 524 1416 (or what have you)