Francis Daly <[EMAIL PROTECTED]> writes:

> 8 is a magic number.  How about
> 
>        printf("Pointer size:   %d bits\n", CHAR_BIT*sizeof(void*)); ?
> 
> to allow for any machine which has some other number of bits in a
> (C-)byte.

So what is more likely?

a) 8 * sizeof(void *) breaks because there aren't 8 bits in a byte
b) CHAR_BIT * sizeof(void *) breaks because while there may be 8 bits
   in a byte a char is two bytes
c) CHAR_BIT * sizeof(void *) breaks because CHAR_BIT isn't defined or
   <limits.h> doesn't exist

:) 

(I don't mean to say anything bad about your suggestion.)
-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Reply via email to