Path: utzoo!mnetor!uunet!ncc!alberta!att-ih!ihnp4!inuxc!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: sizeof(char) Message-ID: <2336@bsu-cs.UUCP> Date: 11 Mar 88 18:26:54 GMT References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> <2809@haddock.ISC.COM> <17395@watmath.waterloo.edu> <7434@brl-smoke.ARPA> <2328@bsu-cs.UUCP> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 16 In article <2328@bsu-cs.UUCP> I wrote: >And nowhere do I find >K&R saying that byte == char == 1 unit is simply a compiler peculiarity >and not a design assumption in the language. Looking again, more carefully this time, I find this on page 188: A byte is undefined by the language except in terms of the value of sizeof. And yet, looking at the extensive discussion of a function alloc() to allocate memory and a portable implementation of it, we find that char and byte are used synonymously in the examples given. See pages 96-98 and then 173-177. -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi