Next Previous Up Top Contents Index

5 Function and Macro Reference

foreign-array-element-type

Function

Summary

Returns the type of the elements of an array.
Package

fli

Signature

foreign-array-element-type array => type

Arguments

array

An FLI array or a pointer to an FLI array.

Values

type

The type of the elements of array.

Description

The functionforeign-array-element-type takes an FLI array or a pointer to an FLI array as its arguments and returns the type of the elements of that array.
Examples

In the following example a 3 by 4 array with integer elements is defined, and theforeign-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

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker