I am new to c++ and was wondering if there is a difference between uint32_t
and tUInt32
?
Is it just syntactic sugar ?
Or is it just a result of using namespace std;
?
I know what they represent (see: https://www.badprog.com/c-type-what-are-uint8-t-uint16-t-uint32-t-and-uint64-t ). I am simply confused why two different ways to represent them exist and which to use.
Although I have searched SO with uint32_t
and tUInt32
, I hope this is not a duplicate.
Thank you for your time.
tUInt32
doesn't seem to be standard. I found a reference to it here in the Symbian OS docs, which defines it as atypedef
ofunsigned long int
, which is not guaranteed to be the same asuint32_t
(uint32_t
is guaranteed to be 32 bits, whereasunsigned long int
is not in general - Symbian may guarantee it is 32 bits, but I can't find a reference for this).