sizeof(char)==1 (was: Long Chars)

Doug Gwyn gwyn at brl-smoke.ARPA
Thu Mar 24 06:56:04 AEST 1988


In article <439 at splut.UUCP> jay at splut.UUCP (Jay Maynard) writes:
>I don't know how much existing code this would break (though I'd bet
>there would be quite a bit of it). It does mean that I, too, will be
>careful not to make that assumption...

Dennis certainly thought sizeof(char) SHOULD ==1 last time I asked
him about it, and there is indeed a large body of code that assumes
this.  As it now stands it is required for ANSI C.



More information about the Comp.lang.c mailing list