Function
fli
null-pointer-p pointer => boolean
An FLI pointer.
boolean
If pointer is a null pointer (that is, a pointer pointing to address 0) thent
is returned, otherwisenull-pointer-p
returnsnil
.
null-pointer-p
is used to determine if a pointer is a null pointer. A null pointer is a pointer pointing to address 0.
:int
is defined, and tested withnull-pointer-p
. The pointer is then freed, becoming a null pointer, and is once again tested usingnull-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)
pointer-address
pointer-eq