|
The mi_fp_argtype() accessor function obtains the type identifier for the data type of an argument of a user-defined routine from its associated MI_FPARAM structure.
fparam_ptr | is a pointer to the associated MI_FPARAM structure. |
arg_pos | is the index position into the argument-type array for the argument whose type identifier you want. |
The mi_fp_argtype() function obtains the type identifier (MI_TYPEID) of the routine argument at position arg_pos from the MI_FPARAM structure that fparam_ptr references. The type identifier is an integer value that indicates a particular data type. The MI_FPARAM structure stores information about the type identifiers of routine arguments in the zero-based argument-type array. To obtain information about the nth argument, use an arg_pos value of n-1. For example, the following call to mi_fp_argtype() obtains the type identifier for the third argument of the my_func() UDR, with which fparam1 is associated:
MI_TYPEID * | is a pointer to the type identifier of the argument at position arg_pos. |
NULL | 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_rettype(), mi_fp_setargtype(), and mi_fp_setrettype().