C programming
This section contains information to help we use the MQI from the C programming language.
- Header files
Header files are provided to help you write C application programs that use the MQI. - Functions
You do not need to specify all parameters that are passed by address every time you invoke a function. - Parameters with undefined data type
- Data types
- Manipulating binary strings
Declare strings of binary data as one of the MQBYTEn data types. - Manipulating character strings
When the queue manager returns character data to the application, the queue manager always pads the character data with blanks to the defined length of the field; the queue manager does not return null-terminated strings. - Initial values for structures
The header files define various macro variables used to provide initial values for the MQ structures when we declare instances of those structures. - Initial values for dynamic structures
- Use from C++
- Notational conventions
This information shows how to invoke the functions and declare parameters.
Parent topic: Introducing data types used in the MQI