All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

foreign-symbol-defined-p Function

Summary

Determines whether a foreign symbol is defined.

Package

fli

Signature

foreign-symbol-defined-p symbol-name &key functionp module encoding => boolean

Arguments
symbol-name
A string or a symbol.
functionp
A boolean.
module
A symbol or string naming a module, or nil.
encoding
One of :source, :object, :lisp or :dbcs.
Values
boolean
nil or t.
Description

The function foreign-symbol-defined-p returns t if symbol-name is a known foreign symbol and nil otherwise.

functionp, module and encoding are used as for make-pointer.

Examples
(foreign-symbol-defined-p "printf") => t
See also

make-pointer


Foreign Language Interface User Guide and Reference Manual - 18 Feb 2025 15:36:32