Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: A glitch regarding the usual malloc() idiom Date: Sun, 24 Jul 2016 19:01:20 -0700 Organization: None to speak of Lines: 23 Message-ID: References: <4cd22745-22ad-4ac7-bdba-39ffa1c75e13@googlegroups.com> <7d995799-5f23-4784-a62e-ea423de00650@googlegroups.com> <36f1e05e-609e-4e0e-8819-86feee1f4d8c@googlegroups.com> <57933a73.4812875@news.xs4all.nl> <5793c8e5.2941812@news.xs4all.nl> <87oa5n97rz.fsf@bsb.me.uk> <1btwfehaze.fsf@pfeifferfamily.net> <24edcb3c-25f2-4ee3-8839-c0830b280a79@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="12061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18t/PXLv/uEtD3j2mOoNywH" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:aSJNTVUw0AqTjrUqw6UyZ5F4CS4= sha1:eWOXzKVyE4kO0mp0EVCZUhA46Ks= Xref: csiph.com comp.lang.c:90941 Malcolm McLean writes: [...] > No. But a bit is a unit of memory, a byte is a unit of data. Incorrect. The standard defines a "bit" as a unit of data storage in the execution environment large enough to hold an object that may have one of two values and a "byte" as an addressable unit of data storage large enough to hold any member of the basic character set of the execution environment Since the discussion is about the wording of the C standard, it would be absurd not to use the standard's definitions of these terms. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"