Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pur-phy.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:Physics:crl From: Pucc-H:Physics:crl@CS-Mordred.UUCP Newsgroups: net.unix-wizards Subject: Re: NULL vs 0 Message-ID: <1153@pur-phy.UUCP> Date: Fri, 20-Jan-84 10:39:50 EST Article-I.D.: pur-phy.1153 Posted: Fri Jan 20 10:39:50 1984 Date-Received: Sat, 21-Jan-84 07:30:44 EST References: <345@hocda.UUCP> <2406@rabbit.UUCP> Organization: Purdue University Physics Dept. Lines: 17 What makes a program portable? Adhering strictly to the C reference manual is the answer I'd give. Since the manual states that 0 == NULL, I believe that's that. It is up to the implementation to assure that this works. If I came along with a machine and implementation that disallowed some other construct, like *i++, for example, I know for a fact that everyone would scream at how ``I'' should change, and not how ``C'' should be modified. Offhand, I could not find anything in the manual that says that function arguments on the stack are no smaller than type int. (I could have easily overlooked this, however.) Couldn't machines with 32 bit pointers and 16 bit ints push 32 bits on the stack always. This is analogous to how chars are done now. Charles LaBrec UUCP: pur-ee!Physics:crl, purdue!Physics:crl INTERNET: crl @ pur-phy.UUCP