Main index | Section 3 | Options |
#include <libelftc.h>
Argument encodedname specifies the encoded symbol name. Argument buffer denotes a programmer-specified area to place the prototype string in. Argument bufsize specifies the size of the programmer-specified area. Argument flags specifies the encoding style in use for argument encodedname. Supported encoding styles are:
ELFTC_DEM_ARM | The encoding style used by compilers adhering to the conventions of the C++ Annotated Reference Manual. |
ELFTC_DEM_GNU2 | |
The encoding style by GNU C++ version 2. | |
ELFTC_DEM_GNU3 | |
The encoding style by GNU C++ version 3 and later. | |
Argument flags may be zero, in which case the function will attempt to guess the encoding scheme from the contents of encodedname.
char buffer[1024]; const char *funcname;funcname = ...; /* points to string to be demangled */ if (elftc_demangle(funcname, buffer, sizeof(buffer), 0) == 0) printf("Demangled name: % , buffer); else perror("Cannot demangle %s", funcname);
[EINVAL] | Argument encodedname was not a valid encoded name. |
[ENAMETOOLONG] | The output buffer specified by arguments buffer and bufsize was too small to hold the decoded function prototype. |
ELFTC_DEMANGLE (3) | August 24, 2011 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.