1 #include <inttypes.h>
2 #include <stdio.h>
3 
4 static void another_func(char *msg)
5 {
6    printf ("another func called msg %s\n", msg);
7 }
8 
9 int main (int argc, char *argv[])
10 {
11    printf("address of main %#" PRIxPTR "\n", (uintptr_t) main);
12    printf("address of another_func %#" PRIxPTR "\n", (uintptr_t) another_func);
13    another_func("called from main");
14    return 0;
15 }
16