Next: , Previous: , Up: Pointers   [Contents][Index]


pointer-address

pointer-address

Syntax

Function: pointer-address ptr ⇒ address

Arguments and Values

ptr

A foreign pointer.

address

An integer.

Description

The function pointer-address will return the address of a foreign pointer ptr.

Examples

  CFFI> (pointer-address (null-pointer))
  ⇒ 0
  CFFI> (pointer-address (make-pointer 123))
  ⇒ 123

See Also

make-pointer
inc-pointer
null-pointer
null-pointer-p
pointerp
pointer-eq
mem-ref