Subject: Re: CMSG_* problems
To: None <email@example.com>
From: James K. Lowden <firstname.lastname@example.org>
Date: 02/15/2007 00:34:46
Alan Barrett wrote:
> On Mon, 12 Feb 2007, Matt Thomas wrote:
> > C mandates that alignment for
> > char <= short <= int <= long <= long long.
> I can't find this requirement. Could you point out the relevant
> part of the C99 or C89 standard?
I am looking at WG14/N1124 Committee Draft -- May 6, 2005 ISO/IEC 9899:TC2
section 188.8.131.52 (Numerical limits) where the minimum and maximum sizes of
integral types is specified. It actually says char < short <= int < long
< long long. More precisely,
the minimum number of bits for each type:
Is that what you were looking for?