|
The mi_fp_nargs() accessor function obtains the number of arguments for the UDR routine from its associated MI_FPARAM structure.
You can use the mi_fp_nargs() function with the DataBlade API functions that obtain information about each argument of the UDR routine (such as mi_fp_argtype() and mi_fp_argisnull()). For example, the following call to mi_fp_nargs() obtains the number of arguments from the MI_FPARAM structure that fparam1 identifies and uses the value in a loop to obtain the length of each argument:
>=0 | is the number of arguments with which the UDR was called. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_fp_argisnull(), mi_fp_arglen(), mi_fp_argprec(), mi_fp_argscale(), mi_fp_argtype(), mi_fp_nrets(), and mi_fp_setnargs().