Function
fli
convert-from-foreign-string pointer &key external-format length null-terminated-p => string
A pointer to a foreign string.
A keyword specifying the format of the foreign string.
The length of the string to convert.
Ift, it is assumed the string terminates with a null character. The default value for null-terminated-p ist.
A Lisp string.
convert-from-foreign-string, given a pointer to a foreign string, converts the foreign string to a Lisp string. The pointer does not need to be of the correct type, as it will automatically be coerced to the correct type as specified by the external-format keyword. char*. For Unicode encoded strings, specify:unicode. If you want to receive a string from the Win32 API, known asSTR in the Win32 API terminology, specify *multibyte-code-page-ef*, which is a variable holding the external format corresponding to the current Windows multi-byte code page. nil. If null-terminated-p ist and length is not specified, it is assumed that the foreign string to be converted is terminated with a null character. convert-to-dynamic-foreign-string with-foreign-string