Mercurial > hg > CbC > old > device
annotate test/tmp.c @ 467:32737bad7489
fix list/tag interference
author | kono |
---|---|
date | Sat, 30 Jul 2005 16:01:45 +0900 |
parents | 0c256ea2a97e |
children | a379da780856 |
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; | |
427 | 31 printf("#0028:%d %s\n",i,p-i); |
32 printf("#0029:%d\n",main1(ac,av,g,g)); | |
172 | 33 return 0; |
0 | 34 } |