A library that programmatically gets the program stack trace in C.
A detailed explanation on the code can be found here: http://pragmaticjoe.blogspot.ro/2015/04/getting-stack-trace-programmatically-in.html
Building (Linux):
cd <path to c-stacktrace>
mkdir build
cd build
cmake -G "Unix Makefiles" ../
make