Re: [hackers] [quark] Use sizeof() instead of magic constants || FRIGN

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Mon, 5 Sep 2016 08:35:57 +0200

On 5 September 2016 at 07:53, Markus Teich <markus.teich_AT_stusta.mhn.de> wrote:
> Anselm R Garbe wrote:
>> Use 'sizeof(type)' with brackets but 'sizeof var' without.
>
> Heyho Anselm,
>
> can you elaborate on the reasoning behind this? The styleguide says "Always use
> () with sizeof".

The styleguide needs to be fixed.

See http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf 6.5.3
for unary operator specification of the C language.

-Anselm
Received on Mon Sep 05 2016 - 08:35:57 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 05 2016 - 08:48:14 CEST