Subject Re: [firebird-support] UDF:s and nulls
Author Kjell Rilbe
Thanks Ivan - your doc was very instructive! I have one question though
(below).

Ivan Prenosil wrote:
> * NULL can be returned from UDF, provided the value
> is passed by reference, not by value.

How? Set the returned pointer to nil (nil in pascal terms = null in C
terms).

And what if I use FB memory allocation:

procedure MyUDF(Result: PChar);

I can't free the passed buffer (well, I could but... urghhh...) and set
the pointer ot nil...

Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64