On 4/3/06, Nick Guenther <[EMAIL PROTECTED]> wrote: > On 4/3/06, Ted Unangst <[EMAIL PROTECTED]> wrote: > > On 4/3/06, Thorsten Glaser <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] dixit: > > > > > > >sizeof(char) = 1 by definition. > > > > > Isn't using sizeof(char) clearer though? It doesn't change the binary > anyway so what does it matter how it's written?
no. sizeof(char) looks like a type of sizeof(char *). if it's 1 and it's always going to be 1, use 1. we're allocating 1 dmesg buffer, so say so. sizeof(char) is about as useful as "if ((fn() == FALSE) == TRUE)" types of nonsense.