|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
OCI Datatype Mapping and Manipulation Functions, 105 of 134
Converts an Oracle number type to integer.
sword OCINumberToInt ( OCIError *err, CONST OCINumber *number, uword rsl_length, uword rsl_flag, dvoid *rsl );
The OCI error handle. If there is an error, it is recorded in
err and this function returns OCI_ERROR. Obtain diagnostic information by calling
Number to convert.
Size of the desired result.
Flag that designates the sign of the output, as follows:
Pointer to space for the result.
This is a native type conversion function. It converts the given Oracle number into an integer of the form xbn, such as ub2, ub4, or sb2.
This function returns an error if
rsl is null, if
number is too big (overflow) or too small (underflow), or if an invalid sign flag value is passed in