httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] distinguishing 64-bit vs. 32-bit in httpd -v
Date Tue, 04 Dec 2001 18:36:25 GMT
Francis Daly <deva@daoine.org> 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 | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message