informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_fp_nargs()

The mi_fp_nargs() accessor function obtains the number of arguments for the UDR routine from its associated MI_FPARAM structure.

Syntax

Usage

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:

Return Values

>=0 is the number of arguments with which the UDR was called.
MI_ERROR indicates that the function was not successful.

Related Topics

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().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved