Mercurial > hg > CbC > old > device
annotate test/tmp.c @ 515:3d921f7a8e74
*** empty log message ***
author | kono |
---|---|
date | Mon, 26 Dec 2005 09:18:36 +0900 |
parents | a379da780856 |
children | 2f577690bcfb |
rev | line source |
---|---|
467 | 1 int printf(const char *format, ...); |
2 | |
53 | 3 |
4 int | |
5 main1(int ac,char *av[],int (*f)(),int g()) | |
6 { | |
7 return (*f)(ac)+g(ac); | |
8 } | |
9 | |
10 int | |
11 g(int k) { | |
12 return k+1; | |
13 } | |
0 | 14 |
15 main0(ac,av) | |
16 { | |
17 return ac; | |
18 } | |
19 | |
20 main(ac,av) | |
21 int ac; | |
22 char *av[]; | |
23 { | |
24 register int i; | |
25 register char *p; | |
26 | |
27 p = av[1]; | |
28 if (!p) return; | |
29 i = p[1]; | |
30 p = p+i; | |
491 | 31 printf("#0030:%d %s\n",i,p-i); |
32 printf("#0031:%d\n",main1(ac,av,g,g)); | |
172 | 33 return 0; |
0 | 34 } |