Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!jvnca!njitsc1!argus!ken From: ken@argus.UUCP (Kenneth Ng) Newsgroups: comp.lang.c Subject: Re: Writing readable code Message-ID: <926@argus.UUCP> Date: Mon, 29-Jun-87 20:58:21 EDT Article-I.D.: argus.926 Posted: Mon Jun 29 20:58:21 1987 Date-Received: Wed, 1-Jul-87 02:45:19 EDT References: <1158@copper.TEK.COM> <6858@auspyr.UUCP> <17171@cca.CCA.COM> <13008@topaz.rutgers.edu> Organization: NJ Instit. of Tech: TEIES Project Lines: 28 In article <13008@topaz.rutgers.edu>, ron@topaz.rutgers.edu (Ron Natalie) writes: > I have always wondered why people think NULL is more mnemonic than 0. > -Ron It's not mnemonic, on some machines its just wrong. NULL is ***NOT*** defined as zero on all machines. Therefore the software writen with that assumption will not work on such a machine. More than likely the machine will be blamed even though the writer of the software is to blame. > if((fd=open("foo",1)<0) [edit] > fd = open("foo", 1); > if(fd == -1) Almost agreed: but if a negative return code other than -1 is returned the code doesn't react the same. ... This signature was put in in a way to bypass the ... bogus artificial line limit on the .signature file. ... Also, by its length it adds fodder to help avoid having ... my followups being bounced due to the restriction on ... followup articles. Kenneth Ng: Post office: NJIT - CCCC, Newark New Jersey 07102 uucp !ihnp4!allegra!bellcore!argus!ken *** NOT ken@bellcore.uucp *** bitnet(prefered) ken@orion.bitnet