Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ demangle(3) — Sun WorkShop 4.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

CC(1)

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)

Sun Microsystems  —  Last change: 28 April 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026