64-bit UNIX applications

 

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

Name Length
char 1 byte
short 2 bytes
int 4 bytes
long 8 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 8 bytes
ptrdiff_t 8 bytes
size_t 8 bytes
time_t 8 bytes
clock_t 8 bytes

Note that on the other UNIX platforms a clock_t is 4 bytes.

wchar_t 4 bytes

Note that on AIX a wchar_t is 2 bytes.

 

Parent topic:

Standard data types


fg19410_