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

mi_fp_setretlen()

The mi_fp_setretlen() accessor function sets the length of a return value of a user-defined function from its associated MI_FPARAM structure.

Syntax

Usage

The mi_fp_setretlen() function sets the length of the function return value at position ret_pos in the MI_FPARAM structure that fparam_ptr references. The MI_FPARAM structure stores information about return-value lengths in the zero-based return-length array.

To set information for the nth return value, use a ret_pos value of n-1. For example, the following call to mi_fp_setretlen() sets the length to 4 bytes for the first return value of the my_func() UDR, with which fparam1 is associated:

Important: C user-defined functions always have only one return value.

Return Values

None.

Related Topics

See the descriptions of the following functions: mi_fp_arglen(), mi_fp_setarglen(), mi_fp_setretprec(), mi_fp_setretscale(), mi_fp_setrettype(), and mi_fp_setreturnisnull().


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