This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: `quad' printf format specifier ?
- To: egcs at egcs dot cygnus dot com
- Subject: Re: `quad' printf format specifier ?
- From: Alex Buell <alex dot buell at tahallah dot demon dot co dot uk>
- Date: Mon, 8 Feb 1999 16:12:36 -0500 (EST)
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.
---