PetscDLAddr#
find the name of a symbol in a dynamic library
Synopsis#
PetscErrorCode PetscDLAddr(PetscVoidFn *func, char *name[])
Not Collective, No Fortran Support
Input Parameters#
- func - pointer to the function, - NULLif not found
Output Parameter#
- name - name of symbol, or - NULLif name lookup is not supported.
Notes#
The caller must free the returned name.
In order to be dynamically loadable, the symbol has to be exported as such. On many UNIX-like systems this requires platform-specific linker flags.
See Also#
PetscDLClose(), PetscDLSym(), PetscDLOpen(), PetscDLLibrary, PetscLoadDynamicLibrary(), PetscDLLibraryAppend(),
PetscDLLibraryRetrieve(), PetscDLLibraryOpen(), PetscDLLibraryClose(), PetscDLLibrarySym()
Level#
developer
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages