0

Possible Duplicate:
How can one grab a stack trace in C?

In PHP it's debug_backtrace,is there such a function in c?

Community
  • 1
  • 1
yh2
  • 21
  • 2

1 Answers1

1

On Windows you can call the StackWalk64 function that is exported by DBGHELP.DLL. It is shipped with Debugging Tools for Windows (WinDbg) but according to this link, "The redistribution policies for these included DLLs were specifically designed to make it as easy as possible for people to include these files in their own packages and releases."

Aaron Klotz
  • 11,287
  • 1
  • 28
  • 22