All Manuals > LispWorks User Guide and Reference Manual > 54 Dynamic library C functions

NextPrevUpTopContentsIndex

LispWorksDlsym

C function
Summary

Returns the address of a foreign callable.

Signature

On Windows:

void __stdcall *LispWorksDlsym (const char * name)

On Linux, Macintosh, FreeBSD and x86/x64 Solaris:

void *LispWorksDlsym (const char * name)

Description

The C function LispWorksDlsym returns the address of a foreign callable name which is defined in Lisp using fli:define-foreign-callable.

LispWorksDlsym first checks whether the LispWorks dynamic library finished initializing, and if not uses InitLispWorks to initialize it (with MilliTimeOut 200). If this fails LispWorksDlsym returns NULL. When the LispWorks dynamic library is initialized, LispWorksDlsym returns the address of name, or NULL if it is not defined.

LispWorksDlsym is defined in each LispWorks dynamic library. For information about creating a LispWorks dynamic library, see deliver and save-image. For an overview of LispWorks as a dynamic library, see LispWorks as a dynamic library.

See also

InitLispWorks


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex