All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

*null-pointer* Variable

Summary

A null pointer.

Package

fli

Initial Value

The result of calling (make-pointer :address 0 :type :void).

Description

The variable *null-pointer* contains a (:pointer :void) with address 0.

This provides a simple way to pass a null pointer when needed.

Examples
(fli:pointer-address fli:*null-pointer*)
=>
0
 
(fli:null-pointer-p fli:*null-pointer*)
=>
T
See also

pointer-address
null-pointer-p
:pointer


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58