I have function as shown below as .c File:

PG_Function_Info_V1(make_array)

PGMODULEEXPORT Datum make_array(PG_FUNCTION_ARGS)
{
ArrayType *result;

///// / Code


///// / Code

PG_RETURN_ARRAY_TYPE_P(result);
}

I am not able to compile this..

Is there is any other way to return array.

Which file are needed to compile this file.

Thanx in advance.