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


foreign-free

foreign-free

Syntax

Function: foreign-free ptr ⇒ undefined

Arguments and Values

ptr

A foreign pointer.

Description

The foreign-free function frees a ptr previously allocated by foreign-alloc. The consequences of freeing a given pointer twice are undefined.

Examples

  CFFI> (foreign-alloc :int)
  ⇒ #<A Mac Pointer #x1022E0>
  CFFI> (foreign-free *)
  ⇒ NIL

See Also

foreign-alloc
with-foreign-pointer