Commit | Line | Data |
---|---|---|
34e49164 C |
1 | |
2 | struct SHT template = { | |
3 | .field1 = 1, | |
4 | .proc_info = my_proc_info, | |
5 | .field2 = 2, | |
6 | }; | |
7 | ||
8 | ||
9 | int my_proc_info(int i) | |
10 | { | |
11 | } | |
12 | ||
13 | ||
14 | int foo(struct SHT * tpnt) | |
15 | { | |
16 | tpnt->proc_info = my_proc_info2; | |
17 | } | |
18 | ||
19 | int my_proc_info2(int i) | |
20 | { | |
21 | } | |
22 | ||
23 | ||
24 | int not_proc_info(int i) | |
25 | { | |
26 | } |