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

mi_fp_argtype()

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.

Syntax

Usage

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:

Return Values

MI_TYPEID * is a pointer to the type identifier of the argument at position arg_pos.
NULL 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_rettype(), mi_fp_setargtype(), and mi_fp_setrettype().


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