lkml.org 
[lkml]   [2014]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio: mcp23s08: Trivial: Fixed coding style issues
From
On Wed, Mar 12, 2014 at 9:16 PM, Gerhard Sittig <gsi@denx.de> wrote:

> 'sizeof' is an operator, very much like a unary minus or
> unary ampersand which neither require parentheses. So either of
> "sizeof(x)" as well as "sizeof x" are legal with regard to the C
> language. It's just that the community prefers "sizeof(x)" for
> the improved readability.

You're right, amazingly. Thanks for teaching me something new
today!

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2014-03-14 12:01    [W:0.061 / U:1.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site