Re: data types
- From: Roberto Waltman <usenet@xxxxxxxxxxxx>
- Date: Fri, 02 Mar 2007 18:13:17 -0500
koolj96825@xxxxxxxxx wrote:
... an int could
be 32-bit for PCs.
...but the manual for the compiler I am using says int is
16-bit.
Anyway, now that I need to go back over and look closely at my code,
my question is: is there a way to declare a variable say a 16 bit
unsigned integer in C? Or is declaring it "short" the only specifier
that may work?
For non-C99 compilers, the common, non-portable way of doing it is:
typedef [whatever type is 16 bits in your platform] int16;
typedef [whatever type is 32 bits in your platform] int32;
and so on. Then use int16/32/etc. instead of plain int in your code.
Thanks in advance
Roberto Waltman
[ Please reply to the group,
return address is invalid ]
.
- Follow-Ups:
- Re: data types
- From: CBFalconer
- Re: data types
- From: Ian Collins
- Re: data types
- References:
- data types
- From: koolj96825
- data types
- Prev by Date: data types
- Next by Date: Re: Passing execution to a memory address
- Previous by thread: data types
- Next by thread: Re: data types
- Index(es):
Relevant Pages
|