Declaring the Buffer parameter
The MQGET, MQPUT, and MQPUT1 calls each have one parameter that has an undefined data type: the Buffer parameter. Use this parameter 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 particular structure that describes the layout of the data in the message. The function prototype declares the parameter as a pointer-to-void, so that we can specify the address of any sort of data as the parameter on the call invocation.
Pointer-to-void is a pointer to data of undefined format. It is defined as:typedef void *PMQVOID;Parent topic: Use the calls in the C language