The mi_fp_setnrets() function

The mi_fp_setnrets() accessor function sets the number of return values for the user-defined function in its associated MI_FPARAM structure.

Syntax

void mi_fp_setnrets(fparam_ptr, ret_num)
   MI_FPARAM *fparam_ptr;
   mi_integer ret_num;
fparam_ptr
A pointer to the associated MI_FPARAM structure.
ret_num
The integer number of return values to store in the MI_FPARAM structure.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_fp_setnrets() function sets the number of return values for a C UDR associated with the MI_FPARAM structure that fparam_ptr references to the value in ret_num.

For more information about return-value information in an MI_FPARAM structure, see the HCL OneDB™ DataBlade® API Programmer's Guide.

Important: C user-defined functions have only one return value.

Return values

None.