ESQL/C functions for string conversion

The Informix® ESQL/C function library provides the following functions that facilitate conversion of values in character data types (such as mi_string or mi_char) to and from some C-language data types.
rstod()
Converts a string to a double type
rstoi()
Converts a null-terminated string to a two-byte integer (int2)
rstol()
Converts a string to a four-byte integer (int4)
In addition, the Informix ESQL/C library provides the following functions to convert text representation of values to their binary representation.
Type of string More information
INT8 strings Convert INT8 values
Decimal strings ESQL/C functions for decimal conversion
Date strings ESQL/C functions for date conversion
Date and time strings ESQL/C functions for date, time, and interval conversion