Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ demangle(3) — Sun WorkShop 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

CC(1)

nm(1)

DEMANGLE(3)  —  MISC. REFERENCE MANUAL PAGES

NAME

demangle − decode a C++ encoded symbol name

SYNOPSIS

cc [ flag ... ] file ... -ldem [ library ... ]
 
CC [ flag ... ] file ... -ldem [ library ... ]
 
#include <demangle.h>
 
demangle(char ∗in, char ∗out);

DESCRIPTION

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 user-specified buffer.  demangle() does not check for overflow of the array pointed to by out.  It is the user’s responsibility to provide a large enough out.  demangle() operates on mangled names generated by both C++ 3.0.1 and C++ 4.0.1.  0 is returned if in represents a valid mangled name; otherwise -1 is returned.  If in is not a valid mangled name, it is copied unchanged to out. 

NOTES

The demangle() interface is likely to change in future releases of the compiler. 
 

SEE ALSO

CC(1), nm(1). 

Sun Microsystems  —  Last change: 12 June 1994

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