test-cplus-demangle.c 262 B

1234567891011121314
  1. extern int printf(const char *format, ...);
  2. extern char *cplus_demangle(const char *, int);
  3. int main(void)
  4. {
  5. char symbol[4096] = "FieldName__9ClassNameFd";
  6. char *tmp;
  7. tmp = cplus_demangle(symbol, 0);
  8. printf("demangled symbol: {%s}\n", tmp);
  9. return 0;
  10. }