dlclose

Closes an object opened with dlopen.

Library:LibC
Classification:POSIX
Service:Library

Syntax

  #include <dlfcn.h> 
   
  int    dlclose(
     void   *handle);
  

Parameters

handle

(IN) Points to the handle for the module whose symbols are no longer required.

Return Values

If successful, returns 0. Otherwise, returns a nonzero value and sets a value in dlerror.

Remarks

The dlclose function informs the system that the object referenced by handle is no longer needed by the application.

For sample code, see DLFcn.c.

See Also