Parameters with undefined data type

 

The MQGET, MQPUT, and MQPUT1 functions each have a Buffer parameter that has an undefined data type. This parameter is used to send and receive the application’s message data.

Parameters of this sort are shown in the C examples as arrays of MQBYTE. We can declare the parameters in this way, but it is usually more convenient to declare them as the structure that describes the layout of the data in the message. The function parameter is declared as a pointer-to-void, and so the address of any sort of data can be specified as the parameter on the function invocation.

 

Parent topic:

Coding in C


fg11660_