Function calls
Information on all of the MQI calls that are possible. Descriptions, syntax, parameter information, usage notes, and language invocations for each possible language are given for each of the different calls.
![[AIX]](ngaix.gif)
Online help on AIX® and Linux® platforms, in the form of man pages, is available for these calls.
Using the calls in the C language
Parameters that are input only and of type MQHCONN, MQHOBJ, MQHMSG, or MQLONG are passed by value. For all other parameters, the address of the parameter is passed by value.
You do not need to specify all parameters that are passed by address every time that you invoke a function. Where you do not need a particular parameter, specify a null pointer as the parameter on the function invocation, in place of the address of parameter data. Parameters for which this is possible are identified in the call descriptions.
No parameter is returned as the value of the call; in C terminology, this means that all calls return void.
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.
typedef void *PMQVOID;