Data types
Define all data types using the C typedef statement. For each data type, also define the corresponding pointer data type. The name of the pointer data type is the name of the elementary or structure data type prefixed with the letter P to denote a pointer. Define the attributes of the pointer using the MQPOINTER macro variable; the value of this macro variable depends on the environment. The following illustrates how to declare pointer data types:
#define MQPOINTER * /* depends on environment */ ... typedef MQLONG MQPOINTER PMQLONG; /* pointer to MQLONG */ typedef MQMD MQPOINTER PMQMD; /* pointer to MQMD */Parent topic: C programming