Ines(dot)Klimann(at)liafa(dot)jussieu(dot)fr writes:
> complexe * complex_in(float x, float y)
> {
> complexe *result;
> result = (complexe *)palloc(sizeof(complexe));
> result->x = x;
> result->y = y;
> return (result);
> }
A datatype's input routine has to accept a string (char *).
regards, tom lane