Next: , Previous: , Up: Foreign Types   [Contents][Index]


foreign-slot-names

foreign-slot-names

Syntax

Function: foreign-slot-names type ⇒ names

Arguments and Values

type

A foreign struct type.

names

A list.

Description

The function foreign-slot-names returns a potentially shared list of slot names for the given structure type. This list has no particular order.

Examples

  (defcstruct timeval
    (tv-secs :long)
    (tv-usecs :long))
   
  CFFI> (foreign-slot-names '(:struct timeval))(TV-SECS TV-USECS)

See Also

defcstruct
foreign-slot-offset
foreign-slot-value
foreign-slot-pointer