ESQL/C thread-safe decimal functions

The dececvt() and decfcvt() functions of the 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 See
ifx_dececvt() Thread-safe version of the dececvt() ESQL/C function The ifx_dececvt() and ifx_decfcvt() function
ifx_decfcvt() Thread-safe version of the decfcvt() ESQL/C function The ifx_dececvt() and ifx_decfcvt() function

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

When you compile your program with the -thread command-line option of the esql command, esql automatically links these functions to your program.