The ifx_int8toint() function

The ifx_int8toint() function converts an int8 type number into a C int type number.

Syntax

mint ifx_int8toint(int8_val, int_val)
   ifx_int8_t *int8_val;
   mint *int_val;
int8_val
A pointer to an int8 structure that contains the value to convert to an mint value.
int_val
A pointer to an mint variable to contain the result of the conversion.

Usage

The ifx_int8toint() library function converts an int8 value to a C integer. The size of a C integer depends upon the hardware and operating system of the computer you are using. Therefore, the ifx_int8toint() function equates an integer value with the SQL SMALLINT data type. The valid range of a SMALLINT is between 32767 and -32767. To convert larger int8 values to larger integers, use the ifx_int8tolong() library function.

Return values

0
The conversion was successful.
<0
The conversion failed.