Header files

Header files are provided to help you write C application programs that use the MQI.

These header files are summarized in Table 1.

File Contents
CMQC Function prototypes, data types, and named constants for the main MQI
CMQXC Function prototypes, data types, and named constants for the data conversion exit
CMQEC Function prototypes, data types, and named constants for the main MQI, data conversion exit and Interface Entry Points structure (CMQEC includes CMQXC and CMQC.)
CMQSTRC Functions that convert MQI constant definitions to the text equivalent.Attention: Applicable to z/OS from IBM MQ Version 9.1. Programs using this header file must be compiled with the LONGNAME compiler option.
To improve the portability of applications, code the name of the header file in lowercase on the #include preprocessor directive:
#include "cmqec.h"
Parent topic: C programming