The biginttoint2() function
The biginttoint2() function converts a BIGINT type number to an int2 type number.
Syntax
mint biginttoint2(bigintv, int2p)
const bigint bigintv
int2 *int2p
- bigintv
- A bigint value to convert to an int2 integer value.
- int2p
- A pointer to an int variable to contain the result of the conversion.
Return values
- 0
- The conversion was successful.
- <0
- The conversion failed.