Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!cmcl2!brl-adm!adm!MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU From: MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: Undelivered mail Message-ID: <12298@brl-adm.ARPA> Date: 12 Mar 88 11:41:58 GMT Sender: news@brl-adm.ARPA Lines: 33 Subject: Re: sizeof(char) [Non-Deliverable: User does not exist or has never logged on] Reply-To: Info-C@BRL.ARPA Received: From UWAVM(MAILER) by ALASKA with Jnet id 7424 for SXJVK@ALASKA; Sat, 12 Mar 88 02:18 AST Received: by UWAVM (Mailer X1.25) id 5052; Sat, 12 Mar 88 03:18:15 PST Date: Fri, 11 Mar 88 18:26:54 GMT Reply-To: Info-C@BRL.ARPA Sender: Info-C List From: Rahul Dhesi Subject: Re: sizeof(char) Comments: To: info-c@BRL-SMOKE.arpa To: Vic Kapella 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