14 строки
208 B
C
14 строки
208 B
C
|
#include <execinfo.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
void *backtrace_fns[10];
|
||
|
size_t entries;
|
||
|
|
||
|
entries = backtrace(backtrace_fns, 10);
|
||
|
backtrace_symbols_fd(backtrace_fns, entries, 1);
|
||
|
|
||
|
return 0;
|
||
|
}
|