Difference between uint32 and uint32_t

Maxbester picture Maxbester · Nov 13, 2012 · Viewed 158.8k times · Source

Possible Duplicate:
Difference between different integer types

What is the difference between uint32 and uint32_t in C/C++?

Are they OS-dependent?

In which case should I use one or another?

Answer

William Pursell picture William Pursell · Nov 13, 2012

uint32_t is standard, uint32 is not. That is, if you include <inttypes.h> or <stdint.h>, you will get a definition of uint32_t. uint32 is a typedef in some local code base, but you should not expect it to exist unless you define it yourself. And defining it yourself is a bad idea.