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

pointer-address Function

Summary

Returns the address of a pointer.

Package

fli

Signature

pointer-address pointer => address

Arguments
pointer
A FLI pointer.
Values
address
A non-negative integer.
Description

The function pointer-address returns the address of pointer as an integer.

Examples

In the following example a pointer is defined, and its address is returned using pointer-address.

(setq point (fli:allocate-foreign-object :type :int))
 
(fli:pointer-address point)
See also

3.2 Pointer testing functions
null-pointer-p
pointer-eq


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