Messages in this thread | | | Date | Fri, 14 Mar 2014 11:19:53 +0100 | Subject | Re: [PATCH] gpio: mcp23s08: Trivial: Fixed coding style issues | From | Linus Walleij <> |
| |
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
| |