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

ifx_int8cvasc()

The ifx_int8cvasc() function converts a value held as printable characters in a C char type into an int8 type number.

Syntax

Usage

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.

Return Codes

0 The conversion was successful.
-1213 The string has non-numeric characters.
-1284 The operation resulted in overflow or underflow.

Example

The file int8cvasc.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