C programming language" /> Initial values for structures
Home

 

Initial values for structures

The header files define various macro variables that we can use to provide initial values for the MQ structures when you declare instances of those structures. These macro variables have names of the form MQxxx_DEFAULT, where MQxxx represents the name of the structure. They are used in the following way:

MQMD   MyMsgDesc = {MQMD_DEFAULT};
MQPMO  MyPutOpts = {MQPMO_DEFAULT};

For some character fields (for example, the StrucId fields that occur in most structures, or the Format field that occurs in MQMD), the MQI defines particular values that are valid. For each of the valid values, two macro variables are provided:



 

Home