DEMANGLE(3)

NAME
demangle - decode a C++ encoded symbol name

SYNOPSIS
CC [ flag ... ] file ... library ...]
#include <demangle.h>
cplus_demangle(const char *in, char *out, size_t size);

DESCRIPTION

cplus_demangle() decodes the string in, and copies the result to out. in points to a string representing a name mangled by the C++ compiler. out is a buffer of size bytes, that you specify. If the output buffer is too small to contain the demangled name, cplus_demangle() returns DEMANGLE_ESPACE, and the contents of out are undefined. Otherwise, if the name is a valid C++ mangled name, cplus_demangle() returns 0. If in is not a valid C++ mangled name, it is copied unchanged to out, and the function returns DEMANGLE_ENAME.

cplus_demangle() operates on mangled names generated by C++ 3.0.1 and all versions of C++ 4.0 and above.

SEE ALSO
CC(1)