Equivalent data types

This topic lists the common C and PL/I data type equivalents.

Table 1. C and PL/I type equivalents
C type
Matching PL/I type
char[...]
char(...) varyingz
wchar[...]
wchar(...) varyingz
signed char
fixed bin(7)
unsigned char
unsigned fixed bin(8)
short
fixed bin(15)
unsigned short
unsigned fixed bin(16)
int
fixed bin(31)
unsigned int
unsigned fixed bin(32)
long long
fixed bin(63)
unsigned long long
unsigned fixed bin(64)
float
float bin(21)
double
float bin(53)
long double
float bin(p) (p >= 54)
enum
ordinal
typedef
define alias
struct
define struct
union
define union
struct *
handle