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


pointerp

pointerp

Syntax

Function: pointerp ptr ⇒ boolean

Arguments and Values

ptr

An object that may be a foreign pointer.

boolean

T or NIL.

Description

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

make-pointer null-pointer-p