Obtain the MI_FPARAM structure
By default, the Fastpath look-up functions allocate an MI_FPARAM structure and assign a pointer to this structure in the function descriptor. To obtain the MI_FPARAM structure that is associated with a function descriptor, use the mi_fparam_get() function.
After the call to mi_fparam_get(), you can use the MI_FPARAM accessor functions to retrieve information from the MI_FPARAM structure, such as argument information (Table 1) and return-value information (Table 1). For information about these accessor functions and the information that they can retrieve from an MI_FPARAM structure, see Access MI_FPARAM routine-state information.
Figure 1 shows
the use of the mi_fparam_get() function to obtain
the MI_FPARAM structure that is associated with the numeric_func() user-defined
function. This code fragment uses the mi_fp_nrets() accessor
function to obtain the number of return values for numeric_func() from
the MI_FPARAM structure.
Tip: You can allocate your
own MI_FPARAM structure for a UDR that you execute with the
Fastpath interface. For more information, see A user-allocated MI_FPARAM structure.