Subject: Re: CMSG_* problems
To: None <tech-userlevel@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: tech-userlevel
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 5.2.4.2 (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:

	char 	 8
	short	16
	int	16
	long	32
	llong	64

Is that what you were looking for?  

--jkl