![]() |
|
The ifx_int8toasc() function converts an int8 type number to a C char type value.
If the int8 number does not fit into a character string of length len, ifx_int8toasc() converts the number to an exponential notation. If the number still does not fit, ifx_int8toasc() fills the string with asterisks. If the number is shorter than the string, ifx_int8toasc() left-justifies the number and pads it on the right with blanks.
Because the character string that ifx_int8toasc() returns is not null terminated, your program must add a null character to the string before you print it.
When you use a nondefault locale (one other than U.S. English), ifx_int8toasc() supports non-ASCII characters in the strng_val character string. For more information, see the Informix Guide to GLS Functionality.
The file int8toasc.ec in the demo directory contains the following sample program.