Hello,
There are two type definition include files <sys/types.h> (u_int, u_char, u_long) and <stdint.h> (u_int8_t, u_int16_t, u_int32_t...).
What are the differencies between these two? Is it important to make a difference between u_int (32 bits) and u_int32_t which is 32 bits also?
Thanks.
[C] u_int vs u_int32_t
[C] u_int vs u_int32_t
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: [C] u_int vs u_int32_t
The former is not defined as a specific width, while the latter is courtesy of the C99 standard. That means that all correct (cough msvc) implementations support the latter, while the former may differ in implementation and may not be present at all on non-posix systems.
Re: [C] u_int vs u_int32_t
That's clear now, thank you.
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium