external_library(+atom)

Check if a external library is loaded into memory or not. If the library is loaded then the predicate is exited, else it fails.

Arrow.gif (1632 bytes) Under windows the name of the file to load is case insensitive.

 

see also: load_external_library/1 unload_external_library/1

Examples
external_library('numtest.dll'). In the folder of the executable running the Prolog program and the 'plugin' subfolder of the executable the Windows library file 'numtest.dll' is searched and if found it is checked if the module is loaded or not.
external_library('c:\\temp\\numtest.dll'). A check is started to see if the library 'c:\\temp\\numtest.dll' is loaded or not, if the library is loaded then the predicate is exited else it starts failing.

 

 

info@trinc-prolog.com