|
The mi_fp_setrettype() accessor function sets the type identifier for the data type of a return value of a user-defined function in its associated MI_FPARAM structure.
The mi_fp_setrettype() function sets the type identifier of the function return value at position ret_pos in the MI_FPARAM structure that fparam_ptr references.The type identifier is an integer value that indicates a particular data type. The ret_typeid value must be a valid type identifier. The MI_FPARAM structure stores information about the type identifiers of function return values in the zero-based return-type array.
To set information about the nth return value, use a ret_pos value of n-1. For example, the following call to mi_fp_setrettype() obtains the type identifier to mi_integer for the first return value of the my_func() UDR, with which fparam1 is associated:
Important: C user-defined functions always have only one return value.
Return Values
None.
See the descriptions of the following functions: mi_fp_argtype(), mi_fp_setargtype(), mi_fp_setretlen(), mi_fp_setretprec(), mi_fp_setretscale(), and mi_fp_setreturnisnull().