Regarding uint8 and uint8_t

This is a discussion on Regarding uint8 and uint8_t within the C Programming forums, part of the General Programming Boards category; I see people like to use uint8 for buff declaration. It looks good to me as well, but I just ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    14

    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?
    Thanks.

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


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21