Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datatypes used in C

Tags:

c

What is the difference between u_int32_t and uint32_t?

like image 541
asir Avatar asked Feb 23 '11 12:02

asir


2 Answers

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

like image 163
Šimon Tóth Avatar answered Oct 29 '22 01:10

Šimon Tóth


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.

like image 40
larryang Avatar answered Oct 29 '22 01:10

larryang