|
The mi_fp_arglen() accessor function obtains the length 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-length array for the argument whose length you want. |
The mi_fp_arglen() function obtains the length of the routine argument at position arg_pos from the MI_FPARAM structure that fparam_ptr references. The MI_FPARAM structure stores information about the lengths of routine arguments in the zero-based argument-length array. To obtain information about the nth argument, use an arg_pos value of n-1. For example, the following call to mi_fp_arglen() obtains the length for the third argument of the my_func() UDR, with which fparam1 is associated:
>=0 | is the length, in bytes, of the argument at position arg_pos. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_fp_argisnull(), mi_fp_argprec(), mi_fp_argscale(), mi_fp_argtype(), mi_fp_retlen(), mi_fp_setarglen(), and mi_fp_setretlen().