/* demangle.cpp -- a tool to demangle C++ names This example has not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of this program. All code contained herein is provided to you "AS IS". THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. */ #include #include int main (int argc, char *argv[]) { char *name; char * rest; Name *demangledname = Demangle(argv[1],rest); if (demangledname != NULL){ name = demangledname->Text(); printf("demangled name: %s\n",name); } else printf("bad name\n"); return 0; }