32-bit UNIX applications

 

This section is included for comparison and is based on Solaris. Any differences with other UNIX platforms are noted:

Name Length
char 1 byte
short 2 bytes
int 4 bytes
long 4 bytes
float 4 bytes
double 8 bytes
long double 16 bytes

Note that on AIX and Linux PPC a long double is 8 bytes.

pointer 4 bytes
ptrdiff_t 4 bytes
size_t 4 bytes
time_t 4 bytes
clock_t 4 bytes
wchar_t 4 bytes

Note that on AIX a wchar_t is 2 bytes.

 

Parent topic:

Standard data types


fg19400_