Atom

ffi.close()

Closes a loaded library.

Signature

ffi.close(library)

Parameters

Open library handle.

Returns

Null.

Behavior

Invalidates its bound functions, extensions and associated symbol pointers. Retires library call plans.

Errors

Closed/in-use library or OS unload failure.

Example

Build the native C fixture and pass its shared library path after --.

Atom
use ffi
use os
lib = ffi.load(os.args[0])
ffi.close(lib)