Is there any difference between u_int8_tand uint8_t?
u_int8_t- This is just an old name that has not been standardized. Avoid this.
Is there a reason (besides legacy code) to use u_int8_t?
Suicide by a colleague.
Can I assume what uint8_twill be present if I use the C ++ 11 compiler (on different OS or architectures)?
The C ++ standard requires it to be present in all implementations that have an unsigned 8-bit type (today this means everything that is not exotic).
Are the answers to the above questions are valid for other types of ( intX_tand uintX_t)?
To a large extent, yes.
source
share