annotate func-ptr-array.c @ 2:bf65d90b8dc8

*** empty log message ***
author kinjo
date Mon, 28 Nov 2005 13:34:57 +0900
parents e59ebf6fe2b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
1 #include<stdio.h>
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
2 int
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
3 aho()
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
4 {
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
5 static int count=0;
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
6 printf("aho%d\n", count++);
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
7 return(0);
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
8 }
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
9 int (*lis[])()={
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
10 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
11 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
12 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
13 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
14 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
15 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
16 aho,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
17 (void*)0,
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
18 };
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
19 int
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
20 main()
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
21 {
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
22 int i;
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
23 for(i=0;lis[i]!=(void*)0;i++){
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
24 lis[i]();
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
25 }
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
26 return(0);
e59ebf6fe2b0 Initial revision
kinjo
parents:
diff changeset
27 }