News for hackers. Stuff that matters.
Re:Sizeof(char) is 1 by cdavid on Monday September 06, 2010 @04:28AM (#1666247)
I think it depends. In general, I prefer using expression, but there are cases where using sizeof is better (where better may be clearer, more maintainable, etc...).

I think casting malloc is useless in C (not only semantically, but from a readability POV), and is generally correlated with poor C programming. As other mentioned, mozilla is in C++, so that does not apply.

There are no comments on this comment yet.