Package: cffi

Function pointerp

Lambda List

pointerp (ptr)

Arguments

ptr -- An object that may be a foreign pointer.

Return Value

t or nil.

Details

The function pointerp returns true if ptr is a foreign pointer and false otherwise.

Implementation-specific Notes

In Allegro CL, foreign pointers are integers thus in this implementation pointerp will return true for any ordinary integer.

Examples

  CFFI> (foreign-alloc 32)
  => #<A Mac Pointer #x102D20>
  CFFI> (pointerp *)
  => T
  CFFI> (pointerp "this is not a pointer")
  => NIL  
 

See also