I often see source code using types like uint32, uint64 and I wonder if they should be defined by the programmer in the application code or if they are defined in a standard lib header.
What’s the best way to have these types on my application source code?
The C99
stdint.hdefines these:int8_tint16_tint32_tuint8_tuint16_tuint32_tAnd, if the architecture supports them:
int64_tuint64_tThere are various other integer typedefs in
stdint.has well.If you’re stuck without a C99 environment then you should probably supply your own typedefs and use the C99 ones anyway.
The
uint32anduint64(i.e. without the_tsuffix) are probably application specific.