void getMap( UDT_HANDLE *geometriesUdt,
INTEGER *result,
char sqlstate[6])
{
int geometriesCount;
/* Get the number of attributes of geometriesUdt. */
FNC_GetStructuredAttributeCount((*geometriesUdt), &geometriesCount);
...
}