[having found this topic irrelevant to INTERFACES, I'm not posting my reply there]
> Hi there,
>
> I compiled a C-funtion to compute the azimuth of a LSEG but the function
> never
> returns the correct value
> double ori;
> ....
> return( ori );
>
The right way to do it would be:
#include "postgres.h"
#include "utils/palloc.h"
float64 ori = (float64) palloc(sizeof(float64data));
*ori = (float64) .... /* double type expression */
return ( ori );
}
--Gene