1demangle(3EXT)            Extended Library Functions            demangle(3EXT)
2
3
4

NAME

6       demangle, cplus_demangle - decode a C++ encoded symbol name
7

SYNOPSIS

9       cc [ flag ... ] file[ library ... ]  -ldemangle
10
11       #include <demangle.h>
12
13
14
15       int cplus_demangle(const char *symbol, char *prototype, size_t size);
16
17

DESCRIPTION

19       The  cplus_demangle()  function decodes (demangles) a C++ linker symbol
20       name (mangled name)  into a (partial) C++ prototype, if possible.   C++
21       mangled names may not have enough information to form a complete proto‐
22       type.
23
24
25       The  symbol string argument points to the input mangled name.
26
27
28       The prototype argument points to a user-specified output string buffer,
29       of size bytes.
30
31
32       The   cplus_demangle()  function operates on mangled names generated by
33       SPARCompilers C++ 3.0.1, 4.0.1, 4.1 and 4.2.
34
35
36       The cplus_demangle() function  improves  and  replaces  the  demangle()
37       function.
38
39
40       Refer  to  the CC.1, dem.1, and c++filt.1 manual pages in the /opt/SUN‐
41       Wspro/man/man1 directory.  These pages  are  only  available  with  the
42       SPROcc package.
43

RETURN VALUES

45       The cplus_demangle() function returns the following values:
46
47       0                  The symbol argument is a valid mangled name and pro‐
48                          totype contains a (partial) prototype for  the  sym‐
49                          bol.
50
51
52       DEMANGLE_ENAME     The  symbol argument is not a valid mangled name and
53                          the content of prototype is a copy of the symbol.
54
55
56       DEMANGLE_ESPACE    The prototype output buffer is too small to  contain
57                          the  prototype  (or  the symbol), and the content of
58                          prototype is undefined.
59
60
61
62
63SunOS 5.11                        11 Mar 1997                   demangle(3EXT)
Impressum