News for hackers. Stuff that matters.
Re:Stop using strncpy already by Aloisius on Thursday April 04, 2013 @03:53AM (#5491514)
Regardless, it still looks better with parenthesis and removing them serves no real benefit other than proving that I know it is an unary operator.

Feel free to grep through your /usr/include for sizeof and see which way is more common.

Re:Stop using strncpy already by dibbit on Thursday April 04, 2013 @07:34AM (#5492035)
There actually is a good reason not to use parens with sizeof, and it is in fact a means of introducing subtle bugs to your code if you don't know the difference:

    sizeof some_struct; //computed at *compile* time
    sizeof(some_struct); // also computed at *compile* time, but looks like its a runtime call
Anything that looks like something but isn't actually that thing, in my opinion - especially with a language like C - is room for programmer enlightement ..