incf-pointer

Function

Summary

Package

fli

Signature

incf-pointer
pointer
&optional
delta
=>
pointer

Arguments

pointer

A FLI pointer.

delta

An integer. The default value is 1.

Values

pointer

The pointer passed.

Description

The function
incf-pointer
increases the address held by the pointer. If
delta
is not given the address is increased by the size of the type pointed to by the pointer. The address can be increased by a multiple of the size of the type by specifying a
delta
.

The function
incf-pointer
is often used to move a pointer through an array of values.

Example

In the following example an array with 10 entries is defined. A copy of the pointer to the array is made, and is incremented and decremented.