Parameters

BufferLength (MQLONG) - input
Length in bytes of the buffer containing the string padded with blanks. Must be zero or greater.
Buffer (MQCHAR × BufferLength) - input
Buffer containing the blank-padded string. The length is given by the BufferLength parameter. If zero is specified for BufferLength, the null pointer can be specified for the address of the Buffer parameter; in all other cases, a valid (nonnull) address must be specified for the Buffer parameter.
String (MQCHAR × (BufferLength+1)) - output
Buffer to receive the null-terminated string. The length of this buffer must be at least one byte greater than the value of the BufferLength parameter.
CompCode (MQLONG) - output
Completion code.

Reason (MQLONG) - output
Reason code qualifying CompCode.

The following reason codes indicating error conditions can be returned from the mqTrim call:

MQRC_BUFFER_ERROR
Buffer parameter not valid (invalid parameter address or buffer not completely accessible).
MQRC_BUFFER_LENGTH_ERROR
Buffer length not valid.
MQRC_STRING_ERROR
String parameter not valid (invalid parameter address or buffer not completely accessible).