informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

ifx_int8toasc()

The ifx_int8toasc() function converts an int8 type number to a C char type value.

Syntax

Usage

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.

Return Codes

0 The conversion was successful.
-1207 The converted value does not fit into the allocated space.

Example

The file int8toasc.ec in the demo directory contains the following sample program.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved