You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 6: Foreign Types 44<br />
foreign-slot-names<br />
Syntax<br />
foreign-slot-names type ⇒ names<br />
Arguments and Values<br />
type A foreign struct type.<br />
names A list.<br />
[Function]<br />
Description<br />
The function foreign-slot-names returns a potentially shared list of slot names for the<br />
given structure type. This list has no particular order.<br />
Examples<br />
(defcstruct timeval<br />
(tv-secs :long)<br />
(tv-usecs :long))<br />
<strong>CFFI</strong>> (foreign-slot-names ’(:struct timeval))<br />
⇒ (TV-SECS TV-USECS)<br />
See Also<br />
[defcstruct], page 33<br />
[foreign-slot-offset], page 45<br />
[foreign-slot-value], page 47<br />
[foreign-slot-pointer], page 46