Re: Cocoa basic data types?
Re: Cocoa basic data types?
- Subject: Re: Cocoa basic data types?
- From: Gregory Weston <email@hidden>
- Date: Thu, 24 Jan 2002 17:38:25 -0500
On 1/24/02 at 6:52 AM, Manfred Lippert <email@hidden> wrote:
>
are there any "low level" portability data types like "Int16", "UInt16" etc.
>
somewhere defined in the Cocoa headers? Or can I use the Universal Headers
>
with Cocoa? What is the best way to get those types?
Look for <inttypes.h> and/or <stdint.h>. Stdint is an ANSI C99 header that
provides typedefs for integer variants meeting specific criteria. Inttypes is
the pre-standard inspiration for stdint, and I think is retained (with somewhat
lesser duties) in the standard. I know the X dev tools include the typedefs, but
I'm not on an X machine right now so I'm not sure which of these you should look
for specifically. Look for stdint first, I'd guess.
G