开发者

Difference between uint32_t and u_int32_t

开发者 https://www.devze.com 2023-02-13 02:35 出处:网络
W开发者_开发技巧hat is the difference between u_int32_t and uint32_t?uint32_t is a standard C99 type u_int32_t is used internally in some POSIX implementations.As others have mentioned, uint32_t is a

W开发者_开发技巧hat is the difference between u_int32_t and uint32_t?


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


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.


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


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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号