![]() |
|
The ifx_int8cvasc() function converts a value held as printable characters in a C char type into an int8 type number.
strng_val | is a pointer to a string. |
len | is the length of the strng_val string. |
int8_val | is a pointer to the int8 structure where ifx_int8cvasc() places the result of the conversion. |
The character string, strng_val, can contain the following symbols:
The strng_val character string should not contain a decimal separator or digits to the right of the decimal separator. The ifx_int8svasc() function truncates the decimal separator and any digits to the right of the decimal separator. The ifx_int8cvasc() function ignores leading spaces in the character string.
When you use a nondefault locale (one other than U.S. English), ifx_int8cvasc() supports non-ASCII characters in the strng_val character string. For more information, see the Informix Guide to GLS Functionality.
0 | The conversion was successful. |
-1213 | The string has non-numeric characters. |
-1284 | The operation resulted in overflow or underflow. |