Next: , Previous: foreign-symbol-pointer, Up: Pointers


inc-pointer

Syntax

— Function: inc-pointer pointer offset => new-pointer

Arguments and Values

pointer
new-pointer
A foreign pointer.
offset
An integer.

Description

The function inc-pointer will return a new-pointer pointing offset bytes past pointer.

Examples

  CFFI> (foreign-string-alloc "Common Lisp")
  => #<A Mac Pointer #x102EA0>
  CFFI> (inc-pointer * 7)
  => #<A Mac Pointer #x102EA7>
  CFFI> (foreign-string-to-lisp *)
  => "Lisp"

See Also

incf-pointer
make-pointer
pointerp
null-pointer
null-pointer-p