1 | #include <stdio.h> |
---|---|
2 | |
3 | typedef int (*debug_callee) (int); |
4 | |
5 | extern int no_debug_caller (int, debug_callee); |
6 | |
7 | int |
8 | called_from_nodebug_actual(int some_value) |
9 | { |
10 | int return_value = 0; |
11 | return_value = printf (format: "Length: %d.\n", some_value); |
12 | return return_value; // Stop here and step out of me |
13 | } |
14 | |
15 | int |
16 | called_from_nodebug(int some_value) |
17 | { |
18 | int intermediate_return_value = 0; |
19 | intermediate_return_value = called_from_nodebug_actual(some_value); |
20 | return intermediate_return_value; |
21 | } |
22 | |
23 | int |
24 | main() |
25 | { |
26 | int return_value = no_debug_caller(5, called_from_nodebug); |
27 | printf (format: "I got: %d.\n", return_value); |
28 | return 0; |
29 | } |
30 |