Next Prev Up Top Contents Index

null-pointer-p

Function
Summary

Tests a pointer to see if it is a null pointer.

Package

fli

Signature

null-pointer-p pointer => boolean

Arguments

pointer

An FLI pointer.

Values

boolean

If pointer is a null pointer (that is, a pointer pointing to address 0) then t is returned, otherwise null-pointer-p returns nil .

Description

The function null-pointer-p is used to determine if a pointer is a null pointer. A null pointer is a pointer pointing to address 0.

Example

In the following example a pointer to an :int is defined, and tested with null-pointer-p . The pointer is then freed, becoming a null pointer, and is once again tested using null-pointer-p .

(setq point (fli:allocate-foreign-object :type :int)) (fli:null-pointer-p point) (fli:free-foreign-object point) (fli:null-pointer-p point)
See Also

pointer-address

pointer-eq


LispWorks Foreign Language Interface User Guide and Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index