Extended Library Functions demangle(3EXT)
NAME
demangle, cplusdemangle - decode a C] encoded symbol name
SYNOPSIS
cc [ flag ... ] file[ library ... ] -ldemangle
#include
int cplusdemangle(const char *symbol, char *prototype, sizet size);
DESCRIPTION
The cplusdemangle() function decodes (demangles) a C]
linker symbol name (mangled name) into a (partial) C] pro-
totype, if possible. C] mangled names may not have enough
information to form a complete prototype.
The symbol string argument points to the input mangled
name.
The prototype argument points to a user-specified output
string buffer, of size bytes.
The cplusdemangle() function operates on mangled names
generated by SPARCompilers C] 3.0.1, 4.0.1, 4.1 and 4.2.
The cplusdemangle() function improves and replaces the
demangle() function.
Refer to the C.1, dem.1, and c]filt.1 manual pages in the
/opt/SUNWspro/man/man1 directory. These pages are only
available with the SPROcc package.
RETURN VALUES
The cplusdemangle() function returns the following values:
0 The symbol argument is a valid mangled
name and prototype contains a (partial)
prototype for the symbol.
DEMANGLENAME The symbol argument is not a valid man-
gled name and the content of prototype is
a copy of the symbol.
SunOS 5.11 Last change: 11 Mar 1997 1
Extended Library Functions demangle(3EXT)
DEMANGLESPACE The prototype output buffer is too small
to contain the prototype (or the symbol),
and the content of prototype is unde-
fined.
SunOS 5.11 Last change: 11 Mar 1997 2
|