Thread: Regarding uint8 and uint8_t

  1. #1
    Registered User
    Join Date
    Oct 2010

    Regarding uint8 and uint8_t

    I see people like to use uint8 for buff declaration. It looks good to me as well, but I just wonder which header file I should include to use that type or I have to define it by myself? I think it becomes meaningless if I declare it by myself since I have to change code in the future if necessary.
    And I saw someone use uint8_t type as well, what's the different between uint8 and uint8_t?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    You could have just type that in a search engine and got your answer. You probably want <stdint.h>, which is a C99 addition.

    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed