How to detect NULL in VarChar (C function) - Mailing list pgsql-interfaces

From Benno Pütz
Subject How to detect NULL in VarChar (C function)
Date
Msg-id 41E6A794.6020701@mpipsykl.mpg.de
Whole thread Raw
Responses Re: How to detect NULL in VarChar (C function)  (Michael Fuhr <mike@fuhr.org>)
Re: How to detect NULL in VarChar (C function)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
I try to write a function that combines two varchar columns.

Now the problem arose that (either) one of te columns may contain a NULL 
value, in which case the return value seems to become NULL.

I have not been able to find a description of how to detect NULL values 
in VarChar variables passed to C-functions to catch those cases.

Any help will be appreciated
   Benno



pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: ECPGstatus documentation
Next
From: Michael Fuhr
Date:
Subject: Re: How to detect NULL in VarChar (C function)