|
The mi_fp_retlen() accessor function obtains the length of a return value of a user-defined function from its associated MI_FPARAM structure.
The mi_fp_retlen() function obtains the length of the routine return value at position ret_pos from the MI_FPARAM structure that fparam_ptr references. The MI_FPARAM structure stores information about return-value lengths in the zero-based return-length array. To obtain information about the nth return value, use a ret_pos value of n-1. For example, the following call to mi_fp_retlen() obtains the length for the first return value of the my_func() user-defined function, with which fparam1 is associated:
Important: C user-defined functions always have only one return value.
Return Values
Related Topics
See the descriptions of the following functions: mi_fp_arglen(), mi_fp_retprec(), mi_fp_retscale(), mi_fp_rettype(), mi_fp_returnisnull(), mi_fp_setarglen(), and mi_fp_setretlen().