annotate symbol-c.c @ 8:ae12f717a62e draft default tip

fix first example
author one
date Wed, 07 Jun 2017 14:57:55 +0900
parents daa6a4e92480
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
1 extern int printf(char*,...);
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
2 void test_func(){
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
3 }
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
4 unsigned long addrs[]={
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
5 (unsigned long)test_func,
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
6 0,
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
7 };
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
8 int main()
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
9 {
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
10 int i;
4
daa6a4e92480 *** empty log message ***
kinjo
parents: 3
diff changeset
11 for(i=0;addrs[i]>0;i++) printf("%lx\n",addrs[i]);
3
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
12 printf("%lx\n",(unsigned long)test_func);
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
13 return(0);
f03bba45ae77 *** empty log message ***
kinjo
parents:
diff changeset
14 }