Subject Re: UDF problem when I call isc_decode_date
Author Marco Castroo
Thanks Dmitry,

But ISC_QUAD raised an warning by the compiler: warning: passing
argument 1 of "isc_decode_date" from incompatible pointer type. And
the problem is in isc_decode_date function.

Changing the malloc to ib_util_malloc was not enough. The problem
persists.

Now the code is:

char * fn_RetornaMesAno(ISC_QUAD *d)
{
struct tm tm_date;
char *buffer = (char *)ib_util_malloc (8);

isc_decode_date(d, &tm_date);
strftime(buffer, 8 - 1, "%2.2m%4.4Y"+'\0', &tm_date);
return buffer;
}


Thanks,

Marco Castro