Re: sizeof short int
Re: sizeof short int
- Subject: Re: sizeof short int
- From: email@hidden
- Date: Sun, 17 Sep 2006 13:22:48 EDT
> Huibert Aalbers wrote:
>
> > just a quick simple question. Is short int guaranteed to be 2 bytes
> > long on Mac OS X? Will that change with leopard (64 bits)?
>
> If you need a guaranteed 16 bit number, specify a 16 bit number.
>
> int16_t, and uint16_t if you need unsigned, are your friends.
>
> Greg
>
Doesn't hurt to use the sizeof operator either.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden