dladdr

Obtains information about the symbol that is most closely defined by the specified address.

Library:LibC
Classification:POSIX
Service:Library

Syntax

  #include <dlfcn.h> 
   
  int dladdr (
     const void   *addr,
     Dl_info      *info );
  

Parameters

addr

(IN) Points to the address to use for searching for a symbol.

info

(OUT) Points to the symbol information associated with the address.

Return Values

If successful, returns a non-zero value. Otherwise, returns 0 and the structure contains invalid values.

Remarks

The dladdr function searches for the nearest symbol whose address is equal to, or closest to but less than, the specified address.

See Also