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

From Tom Lane
Subject Re: How to detect NULL in VarChar (C function)
Date
Msg-id 12839.1105645796@sss.pgh.pa.us
Whole thread Raw
In response to How to detect NULL in VarChar (C function)  (Benno Pütz <puetz@mpipsykl.mpg.de>)
List pgsql-interfaces
Benno Pütz <puetz@mpipsykl.mpg.de> writes:
> 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.

Use PG_ARGISNULL().  See
33.7.4. Calling Conventions Version 1 for C-Language Functions
at
http://www.postgresql.org/docs/7.4/static/xfunc-c.html
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: How to detect NULL in VarChar (C function)
Next
From: "Satheesh Mani"
Date:
Subject: PGXML