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: Wed, 20 Jul 2016 19:57:47 -0700 Organization: None to speak of Lines: 14 Message-ID: References: <4cd22745-22ad-4ac7-bdba-39ffa1c75e13@googlegroups.com> <48bfec8e-1f8b-4a7d-9de9-2f4b203efa88@googlegroups.com> <706cdd84-add9-4c8d-8210-10a5cf8e5b25@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="3931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IXTcNBFh5rvgX9k0qxDOc" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:061lxCW/QzxE0SM3TCCnp2gQD6E= sha1:0dAdqmyZh0r7RiiMXbW9SZkqC/I= Xref: csiph.com comp.lang.c:90708 BartC writes: [...] > I think if you have a problem with writing 'sizeof(*p)' in the interests > of unambiguity, which is actually only one character more than 'sizeof > *p', then perhaps C isn't the right language for you! `sizeof *p` is not ambiguous, so adding parentheses "in the interests of unambiguity" doesn't make sense. -- 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"