uses of void

Sam Kendall sam at think.COM
Wed Aug 20 01:03:31 AEST 1986


In article <3121 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB)) writes:
>In article <86900012 at haddock> karl at haddock writes:
>>The "abstract units" of sizeof() are "char" by definition.  (Too many users
>>have been assuming sizeof(char)==1, so it's official in C++ and ANSI C.
>
>Don't be too sure that this won't change by the time of the final X3J11
>standard.

No way.  Too much code would break if sizeof (char) wasn't 1.  A
nearly infinite set of these would have to be fixed:

	malloc(strlen(s)+1)

Also plenty of uses of sizeof to count chars in a char array, and
other things like this.

---
Sam Kendall			sam at godot.think.com
Thinking Machines Corp.		{harvard, ihnp4, seismo}!think!sam



More information about the Comp.lang.c mailing list