Skip to main content
Visitor II
January 25, 2014
Question

What is u16/u8 etc?

  • January 25, 2014
  • 1 reply
  • 2602 views
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 ?

    This topic has been closed for replies.

    1 reply

    Super User
    February 2, 2014
    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