This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: `quad' printf format specifier ?


On Mon, 8 Feb 1999, Jeffrey A Law wrote:

> No, you can't assume that.  You can assume:
> 
> sizeof (long long) >=  sizeof (long) >= sizeof (int) >= sizeof (short) >= sizeof (char)

Assuming that >= means greater *or* equal to, are you saying that given
'long long' is 64 bits then 'long', 'int', 'short' and 'char' can also be
64 bits in certain circumstances? 

If that's correct, the expression 'Oh bugger!' is something that comes to
mind. What's the best way to ensure that you get datatypes of a given
bit-length in C/C++?

OK, this is getting off-topic for the egcs mailing list, time to take this
to comp.lang.c or .c++.

Cheers,
Alex.

---




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]