informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

risnull()

The risnull() function checks whether a C or an ESQL/C variable contains a null value.

Syntax

Usage

The risnull() function determines whether ESQL/C variables of all data types except var binary and lvarchar pointer variables contain a null value. To determine whether a var binary or lvarchar pointer host variable contains null, use the ifx_var_isnull() macro. For more information, see page B-258.

Return Codes

1 The variable does contain a null value.
0 The variable does not contain a null value.

Example

This sample program is in the risnull.ec file in the demo directory.

For a complete listing of the exp_chk() function, see Guide to the exp_chk.ec File or refer to the exp_chk.ec file for a listing of this exception-handling function.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved