Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: news.software.b Subject: Re: News for Xenix on PC AT ? Message-ID: <17005@sun.uucp> Date: Mon, 20-Apr-87 14:05:33 EST Article-I.D.: sun.17005 Posted: Mon Apr 20 14:05:33 1987 Date-Received: Tue, 21-Apr-87 03:10:28 EST References: <18346@ucbvax.BERKELEY.EDU> <145@sds.UUCP> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 23 >4: stupid problems from [censored] programmers who think that > sizeof(int) == sizeof(char *) is a universal constant. similiar > problems from similar programmers who assign pointers of different > types w/o casts. (e.g. char * = char ** w/ no cast). also present > are things like: > charptr = malloc(1024); > if ( !charptr ) ... /* this should be (charptr != (char *)NULL) */ This last one falls under the heading of "stupid problems from [censored] compiler writers who didn't understand C before inflicting something that they claim is a C compiler on Xenix users." if (!charptr) ... is IDENTICAL in meaning to if (charptr == 0) ... which, in turn, is IDENTICAL in meaning to if (charptr == (char *)0) ... if "charptr" is of type "char *".