On 04-08-2008 11:41:26 +0200, Sjoerd Mullender wrote:
> I've seen this kind of thing quite often, but I have to ask, why?  The
> standard says about the sizeof operator:
> "When applied to an operand that has type char, unsigned char, or signed
> char, (or a qualified version thereof) the result is 1."
> So why bother multiplying with sizeof(char)?

Because I learnt it this way, and I like it for the case (if ever) when
the size of a char will be different than 1 byte.  It just makes
explicit that I think I'm allocating a string here, and not something
else.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to