Path: utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!aplcen!jhunix!doug From: doug@jhunix.HCF.JHU.EDU (Douglas W O'neal) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: xx vs. uu Message-ID: <4305@jhunix.HCF.JHU.EDU> Date: 21 Feb 90 17:32:27 GMT References: <1513@krafla.rhi.hi.is> <493@sixhub.UUCP> <1226@tuminfo1.lan.informatik.tu-muenchen. <507@sixhub.UUCP> <90052.022126CMH117@psuvm.psu.edu> Reply-To: doug@jhunix.UUCP (Douglas W O'neal) Organization: The Johns Hopkins University - HCF Lines: 33 In article <90052.022126CMH117@psuvm.psu.edu> CMH117@psuvm.psu.edu (Charles Hannum) writes: ->K&R2 [ANSI-standard] C specifies: -> -> "int" (neither far nor short) implicitly means "short int" -> -> "short int"s are 16 bits -> ->Your compiler is broken. -> -> ->Virtually, ->- Charles Martin Hannum II "Klein bottle for sale ... inquire within." -> (That's Charles to you!) "To life immortal!" -> cmh117@psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..." -> c9h@psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..." Sorry but my copy of K&R2 says something different. I quote from page 36. " There are only a few basic data types in C: ... int an integer, typically reflecting the natural size of integers on the host machine ... The intent is that short and long should provide different lengths of integers where practical; int will normally be the natural size for a particular machine. short is often 16 bits, long 32 bits, and int either 16 or 32 bits." Your book is broken. -- Doug O'Neal Distributed Systems Programmer Homewood Academic Computing doug@jhuvms.bitnet, doug@jhuvms.hcf.jhu.edu Johns Hopkins University mimsy!aplcen!jhunix!doug