cancel
Showing results for 
Search instead for 
Did you mean: 

What is u16/u8 etc?

singhd3
Associate II
Posted on January 25, 2014 at 20:48

I am reading it in help files, variables declared as u16/u8 etc. What is this? Does it mean

u16=unsigned int type

u8=unsigned char type ?

1 REPLY 1
Andrew Neil
Chief II
Posted on February 02, 2014 at 23:11

The trouble with int, char, etc is that the 'C' language does not specify what size these types are - they are implementation defined.

That's why people create ''custom'' types of explicitly-defined size & signedness:

u16 - an unsinged 16-bit value;

s8 - a signed 8-bit value;

etc, etc,...

http://c-faq.com/decl/int16.html