Datatypes used in C

前端 未结 4 1101
耶瑟儿~
耶瑟儿~ 2021-01-04 13:30

What is the difference between u_int32_t and uint32_t?

相关标签:
4条回答
  • 2021-01-04 14:03

    As others have mentioned, uint32_t is a standard C99 type.

    Anyway, the takeaway is that if you're writing portable C code or C header files meant to be shared between different devices/architectures, you can use stdint.h.

    0 讨论(0)
  • 2021-01-04 14:04

    uint32_t is a standard C99 type u_int32_t is used internally in some POSIX implementations.

    0 讨论(0)
  • 2021-01-04 14:04

    The variable type uint32_t is an unsigned 32-bit integer data type defined according to the so-called C99 standard. Not all compilers comply with the standard. And u_int32_t is used for some internally implementations.

    0 讨论(0)
  • 2021-01-04 14:15

    uint32_t is standard C99, while u_int32_t is used on certain Unix platforms.

    0 讨论(0)
提交回复
热议问题