P
Pavan
Hi Can you clarify following questions regarding uint16_t
1> Does uint16_t is supported by Windows compilers also? If not on
checking what define, I should typedef. I mean to say for eg:
#ifdef WIN32
typedef unsigned short uint16_t;
#endif
2> When I use uint16_t am I always guaranteed that it cannot hold more
than 16 bits
Eg: uint16_t x = 0xffffffff; // Is it always guaranteed that the value
written is only 0xffff
1> Does uint16_t is supported by Windows compilers also? If not on
checking what define, I should typedef. I mean to say for eg:
#ifdef WIN32
typedef unsigned short uint16_t;
#endif
2> When I use uint16_t am I always guaranteed that it cannot hold more
than 16 bits
Eg: uint16_t x = 0xffffffff; // Is it always guaranteed that the value
written is only 0xffff