All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

foreign-array-element-type Function

Summary

Returns the type of the elements of an array.

Package

fli

Signature

foreign-array-element-type array-or-type => type

Arguments
array-or-type
A FLI array, a pointer to a FLI array or the name of a FLI array type.
Values
type
The type of the elements of array-or-type.
Description

The function foreign-array-element-type returns the type of the elements of array-or-type.

Examples

In the following example a 3 by 4 array with integer elements is defined, and the foreign-array-element-type function is used to confirm that the elements of the array are indeed integers.

(setq array1 (fli:allocate-foreign-object
              :type '(:c-array :int 3 4)))
(fli:foreign-array-element-type array1)
See also

foreign-aref
foreign-array-dimensions
foreign-array-pointer


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58