Next Prev Up Top Contents Index

:ef-mb-string

FLI type descriptor
Summary

Converts between a Lisp string and a C multi-byte string with a specified maximum number of bytes.

Package

fli

Syntax

:ef-mb-string limit &optional external-format

Arguments

limit

The maximum number of bytes of the C multi-byte string.

external-format

The format of the foreign string.

Description

The FLI :ef-mb-string type converts between a Lisp string and a C multi-byte string. The C string may have a maximum length of limit bytes.

The external-format is used to specify the format of the foreign string. It defaults to a format appropriate for C string of type char* . If you want to pass a string to the Windows API, known as STR in the Windows API terminology, specify win32:*multibyte-code-page-ef* , which is a variable holding the external format corresponding to the current Windows multi-byte code page.

See Also

:ef-wc-string


LispWorks Foreign Language Interface User Guide and Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index