Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ihnp4!think!sam From: sam@think.COM (Sam Kendall) Newsgroups: net.lang.c Subject: Re: uses of void Message-ID: <6001@think.COM> Date: Tue, 19-Aug-86 11:03:31 EDT Article-I.D.: think.6001 Posted: Tue Aug 19 11:03:31 1986 Date-Received: Wed, 20-Aug-86 04:48:04 EDT References: <277@sdchema.sdchem.UUCP> <86900012@haddock> <3121@brl-smoke.ARPA> Reply-To: sam@godot.think.com (Sam Kendall) Organization: Thinking Machines, Cambridge, MA Lines: 19 Summary: sizeof (char) must be 1 In article <3121@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) writes: >In article <86900012@haddock> karl@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@godot.think.com Thinking Machines Corp. {harvard, ihnp4, seismo}!think!sam