Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ demangle(3) — Sun WorkShop 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

CC(1)

dem(1)

c++filt(1)

DEMANGLE(3)

NAME

demangle, cplus_demangle − decode a C++ encoded symbol name

SYNOPSIS

cc [ flag ...  ] file [ library ...  ] -ldemangle #include <demangle.h>
int cplus_demangle( const char ∗symbol, char ∗prototype, size_t size);

DESCRIPTION

cplus_demangle () decodes (demangles) a C++ linker symbol name (mangled name) into a (partial) C++ prototype, if possible.  (C++ mangled names may not have enough information to form a complete prototype.) 

The symbol string parameter points to the input mangled name. 

The prototype parameter points to a user-specified output string buffer, of size bytes. 

cplus_demangle() has the following return values:

0The symbol parameter is a valid mangled name and prototype contains a (partial) prototype for the symbol. 

DEMANGLE_ENAMEThe symbol parameter is not a valid mangled name and the content of prototype is a copy of the symbol. 

DEMANGLE_ESPACEThe prototype output buffer is too small to contain the prototype (or the symbol), and the content of prototype is undefined. 

cplus_demangle() operates on mangled names generated by SPARCompilers C++ 3.0.1, 4.0.1, 4.1 and 4.2. 

cplus_demangle() improves and replaces demangle(). 

SEE ALSO

CC(1), dem(1), c++filt(1)

Sun Microsystems  —  Last change: 27 January 1997

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