UDFs : Use of DECIMAL8

Database

UDFs : Use of DECIMAL8

Hallo,

I'am trying to use the data type DECIMAL8 as input parameter in for an UDF.

In the BTEQ script :
CREATE FUNCTION udf_to_char(InputNumber DECIMAL(18,8))
...
is OK

In the C script :
void udf_to_char_d1(DECIMAL8 *InputNumber,
VARCHAR_LATIN *result,
...
is also OK

But has someone a sample of how I can use the following structure in my
C scripts in order to recover my number. I don't find documentation about
this.

typedef struct
{
unsigned long int low;
long int high;
} DECIMAL8, NUMERIC8; /*10 <= n <= 18 */

Regards,
Isabelle