Functions
You do not need to specify all parameters that are passed by address every time you invoke a function.
- Pass parameters that are input-only and of type MQHCONN, MQHOBJ, or MQLONG by value.
- Pass all other parameters by address.
Where a particular parameter is not required, use a null pointer as the parameter on the function invocation, in place of the address of the parameter data. Parameters for which this is possible are identified in the call descriptions.
No parameter is returned as the value of the function; in C terminology, this means that all functions return void.
The attributes of the function are defined by the MQENTRY macro variable; the value of this macro variable depends on the environment.
Parent topic: C programming