All Manuals > LispWorks Foreign Language Interface User Guide and Reference Manual > 8 Type Reference

NextPrevUpTopContentsIndex

:unsigned

FLI type descriptor
Summary

Converts between a Lisp integer and a foreign unsigned integer.

Syntax

:unsigned &optional integer-type

integer-type
 ::= :byte | :char | :short | :int |
              :long | :long :int | :short :int
Arguments

integer-type

The type of the unsigned integer.

Description

The :unsigned type converts between a Lisp integer and a foreign unsigned integer. The optional integer-type argument specifies other kinds of unsigned integer types. See Table 8.3 for a comparison between Lisp and C unsigned types.

A comparison of Lisp and C unsigned types

Lisp type

FLI type

C type

integer

:unsigned

unsigned int

fixnum

:unsigned :byte

unsigned char

fixnum

:unsigned :char

unsigned char

fixnum

:unsigned :short

unsigned short

integer

:unsigned :int

unsigned int

integer

:unsigned :long

unsigned long

fixnum

:unsigned :short :int

unsigned short

integer

:unsigned :long :int

unsigned long

See also

cast-integer
:signed
Integral types


LispWorks Foreign Language Interface User Guide and Reference Manual - 29 Sep 2017

NextPrevUpTopContentsIndex