sizeof(char)
Rahul Dhesi
dhesi at bsu-cs.UUCP
Sat Mar 12 04:26:54 AEST 1988
In article <2328 at 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: <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi
More information about the Comp.lang.c
mailing list