informix
INFORMIX-ESQL/C Programmer's Manual
Using Informix Libraries

Using ESQL/C Thread-Safe Decimal Functions

The dececvt() and decfcvt() functions of the ESQL/C library return a character string that can be overwritten if two threads simultaneously call these functions. For this reason, use the following thread-safe versions of these two functions.

Function Name Description Page Reference
ifx_dececvt() Thread-safe version of the dececvt() ESQL/C function B-94
ifx_decfcvt() Thread-safe version of the decfcvt() ESQL/C function B-94

Both of these functions convert a decimal value to an ASCII string and return it in the user-defined buffer.

When you compile your ESQL/C program with the -thread command-line option of the esql command, esql automatically links these functions to your program. These functions are described in Appendix A, The Demonstration Database.


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