sewardj | 2a31239 | 2011-06-26 09:26:48 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
2 | |||||
3 | static void another_func(char *msg) | ||||
4 | { | ||||
5 | printf ("another func called msg %s\n", msg); | ||||
6 | } | ||||
7 | |||||
8 | int main (int argc, char *argv[]) | ||||
9 | { | ||||
10 | printf("address of main %p\n", &main); | ||||
11 | printf("address of another_func %p\n", &another_func); | ||||
12 | another_func("called from main"); | ||||
13 | return 0; | ||||
14 | } |