5 /* Obtain a backtrace and print it to @code{stdout}. */
14 size
= backtrace (array
, 10);
15 strings
= backtrace_symbols (array
, size
);
17 printf ("Obtained %zd stack frames.\n", size
);
19 for (i
= 0; i
< size
; i
++)
20 printf ("%s\n", strings
[i
]);
25 /* A dummy function to make the backtrace more interesting. */