A script-enabled browser is required for this page to function properly.

ORA_FFI.Is_Null_Ptr

Description

Determines whether a library, function, or pointer handle is null.

Syntax


FUNCTION Ora_Ffi.Is_Null_Ptr (handle libHandleType)
RETURN BOOLEAN;

FUNCTION Ora_Ffi.Is_Null_Ptr (handle  funcHandleType)
RETURN BOOLEAN;

FUNCTION Ora_Ffi.Is_Null_Ptr (handle  pointerType)
RETURN BOOLEAN;

Parameters

Parameter Description
handle The library, function, or pointer to evaluate.

Returns

Value Description
TRUE If the handle is null.
FALSE If the handle is not null.

Example


/* This example uses Ora_Ffi.Is_Null_Ptr */

PROCEDURE register_libs IS
...
BEGIN
   /* Load foreign function library */
   libhandle := Ora_Ffi.load_library
      ('C:/oralibs/', 'libfoo.dll');
   /* Test whether library is null */
   IF (ora_ffi.is_null_ptr(libhandle)) THEN
   ...
END;