Are types like uint32, int32, uint64, int64 defined in any stdlib header? Are types like uint32, int32, uint64, int64 defined in any stdlib header? c c

Are types like uint32, int32, uint64, int64 defined in any stdlib header?


The C99 stdint.h defines these:

  • int8_t
  • int16_t
  • int32_t
  • uint8_t
  • uint16_t
  • uint32_t

And, if the architecture supports them:

  • int64_t
  • uint64_t

There are various other integer typedefs in stdint.h as well.

If you're stuck without a C99 environment then you should probably supply your own typedefs and use the C99 ones anyway.

The uint32 and uint64 (i.e. without the _t suffix) are probably application specific.


Those integer types are all defined in stdint.h


If you are using C99 just include stdint.h. BTW, the 64bit types are there iff the processor supports them.