DEMANGLE(3) — MISC. REFERENCE MANUAL PAGES
NAME
elf_demangle − decode a C++ encoded symbol name
SYNOPSIS
char ∗elf_demangle (char const ∗symbol)
DESCRIPTION
demangle decodes an encoded C++ symbol name into a format which more closely resembles the original C++ declaration. This routine should be used to convert symbols obtained from an ELF symbol table into a form more suitable for output.
WARNING
This routine allocates space for the return buffer using the ELF allocation routines.
CAVEAT
The return value points to static data whose content is overwritten by each call.
SEE ALSO
libelf(3), CC(1), c++filt(1), nm(1).
Bjarne Stroustrup, The C++ Programming Language, Addison-Wesley 1986.
DIAGNOSTICS
The argument, symbol , will be returned if it points to a string which does not need decoding. A return value of NULL indicates that storage could not be allocated for the return buffer.
Sun Microsystems — Last change: 13 July 1989